title: NuSOAP - How to set HTTP protocol to 1.1?
body: <p>I have been researching about this quite a long time and I found no references of how to accomplish it. At the moment I used three or fours operations on the server, but the last one fails giving a non-sense error ("").</p>
  
  <p>Reverse engineering in some testing tools I noticed that HTTP version is not the same... Having the following, how do I set the HTTP protocol to its 1.1 version?</p>
  
  <p>PHP</p>
  
  <pre><code>require_once('lib/nusoap.php');
  $proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
  $proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
  $proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
  $proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';
  $client = new nusoap_client(
  'http://www.quadranet.co.uk/qslwebservice/qslwebbooking.asmx?wsdl',
  'wsdl',
  $proxyhost,
  $proxyport,
  $proxyusername,
  $proxypassword
  );
  $err = $client-&gt;getError();
  if ($err) {
  echo '&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;'.$err.'&lt;/pre&gt;';
  }
  $result = $client-&gt;call(
  'BookTable',
  '&lt;request recordversion="5.0.0"&gt;&lt;parameters locationprefix="'.$_POST['tb_w_locationprefix'].'" atdate="'.$_POST['tb_w_atdate'].'" attime="'.$_POST['tb_w_attime'].'" session="'.$_POST['tb_w_session'].'" covers="'.$_POST['tb_w_covers'].'" surname="'.$_POST['tb_w_surname'].'" title="'.$_POST['tb_w_title'].'" telephone="'.$_POST['tb_w_telephone'].'" productid="'.$_POST['tb_w_productid'].'" sourcesite="'.$_POST['tb_w_sourcesite'].'" authcode="'.$_POST['tb_w_authcode'].'" email="'.$_POST['tb_w_email'].'" forename="'.$_POST['tb_w_forename'].'" message="'.$_POST['tb_w_message'].'" /&gt;&lt;/request&gt;'
  );
  </code></pre>
  
  <p>SOAP REQUEST (Note it's HTTP/1.0)</p>
  
  <pre><code>POST /qslwebservice/qslwebbooking.asmx HTTP/1.0
  Host: www.quadranet.co.uk
  User-Agent: NuSOAP/0.9.5 (1.123)
  Content-Type: text/xml; charset=UTF-8
  SOAPAction: "http://www.resv5.com/webservices/BookTable"
  Content-Length: 674
  &lt;?xml version="1.0" encoding="UTF-8"&gt;
  &lt;SOAP-ENV:Envelope
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:ns5636="http://tempuri.org"&gt;
  &lt;SOAP-ENV:Body&gt;
  &lt;request recordversion="5.0.0"&gt;
  &lt;parameters locationprefix="BIS" atdate="2015-07-25" attime="20:30" session="2" covers="3" surname="Tester" title="Dr." telephone="+440123456789" productid="1" sourcesite="Test" authcode="3FD1B17E" email="name@email.com" forename="Manu" message="comments" /&gt;
  &lt;/request&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>