You are here

function soap_transport_http::usePersistentConnection in Salesforce Suite 5.2

Same name in this branch
  1. 5.2 includes/nusoap.php \soap_transport_http::usePersistentConnection()
  2. 5.2 includes/nusoap.orig.php \soap_transport_http::usePersistentConnection()
Same name and namespace in other branches
  1. 5 includes/nusoap.php \soap_transport_http::usePersistentConnection()
  2. 5 includes/nusoap.orig.php \soap_transport_http::usePersistentConnection()

File

includes/nusoap.orig.php, line 2898

Class

soap_transport_http
transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CURL extension for HTTPS support

Code

function usePersistentConnection() {
  if (isset($this->outgoing_headers['Accept-Encoding'])) {
    return false;
  }
  $this->protocol_version = '1.1';
  $this->persistentConnection = true;
  $this->outgoing_headers['Connection'] = 'Keep-Alive';
  $this
    ->debug('set Connection: ' . $this->outgoing_headers['Connection']);
  return true;
}