title: cURL on wamp not working
body: <p>I'm using a php client written by a company for accessing their web service.
  The client is very comprehensive and includes classes that get populated from XML responses that the web service endpoint generates.</p>
  
  <p>when I run it on a proper web server, it works. But, when I use it locally with wamp it's throwing an error that no data was received.</p>
  
  <p>I've already checked all around StackOverflow, I usually find answers to my questions but this one has drived me crazy!</p>
  
  <p>here is the httpPost function (written as part of the php client they provide):</p>
  
  <pre><code>private function _httpPost(array $parameters)
      {
          $query = $this-&gt;_getParametersAsString($parameters);
          $url = parse_url ($this-&gt;_config['ServiceURL']);
          $scheme = '';
  
          switch ($url['scheme']) {
              case 'https':
                  $scheme = 'https://';
                  $port = $port === null ? 443 : $port;
                  break;
              default:
                  $scheme = '';
                  $port = $port === null ? 80 : $port;
          }
  
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, $scheme . $url['host'] . $url['path']);
          curl_setopt($ch, CURLOPT_PORT, $port);
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
          curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
          curl_setopt($ch, CURLOPT_USERAGENT, $this-&gt;_config['UserAgent']);
          curl_setopt($ch, CURLOPT_POST, true);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
          curl_setopt($ch, CURLOPT_HEADER, true); 
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  
          if ($_config['ProxyHost'] != null &amp;&amp; $_config['ProxyPort'] != -1)
          {
              curl_setopt($ch, CURLOPT_PROXY, $_config['ProxyHost'] . ':' . $_config['ProxyPort']);
          }
          $response = "";
          $response = curl_exec($ch);
          $response = str_replace("HTTP/1.1 100 Continue\r\n\r\n", "", $response);
  
  
          curl_close($ch);
  
          list($other, $responseBody) = explode("\r\n\r\n", $response, 2);
          $other = preg_split("/\r\n|\n|\r/", $other);
          list($protocol, $code, $text) = explode(' ', trim(array_shift($other)), 3);
  
          return array ('Status' =&gt; (int)$code, 'ResponseBody' =&gt; $responseBody);
      }
  </code></pre>
  
  <p>By the way, my curl extension is active and I even made a simple test to fetch google.com with success.</p>