title: php guzzle [curl] 52 Empty reply from server
body: <p>I am making following request which resulted empty reply from server.</p>
  
  <pre><code>Originate server : AWS ec2 / PHP 5.4 / Guzzle 
  Remote server : AWS ec2 through elb 
  CURL info :{
    "url":"https:\/\/xxx\/xxx",
    "content_type":null,
    "http_code":0,
    "header_size":0,
    "request_size":5292,
    "filetime":-1,
    "ssl_verify_result":0,
    "redirect_count":0,
    "total_time":120.987057,
    "namelookup_time":0.000277,
    "connect_time":0.001504,
    "pretransfer_time":0.014271,
    "size_upload":2430,
    "size_download":0,
    "speed_download":0,
    "speed_upload":20,
    "download_content_length":-1,
    "upload_content_length":2430,
    "starttransfer_time":60.998147,
    "redirect_time":59.988895,
    "certinfo":[],
    "primary_ip":"54.169.126.111",
    "primary_port":443,
    "local_ip":"192.168.2.111",
    "local_port":39522,
    "redirect_url":""
  } 
  
  CURL error : [curl] 52: Empty reply from server [url] https:\/\/xxx\/xxx
  </code></pre>
  
  <p>Pls note that this does not happen all the time. </p>
  
  <p>It seems like the request has not even reach the destination(elb) since there was no logs relate to the request <br>
  1. Is the issue with originate server or remote server ? <br>
  2. "starttransfer_time":60.998147 Could this be the root cause ? </p>
  
  <p>Solutions,workarounds,suggestions are welcome.Thanks!</p>