title: PHP - getCookies() empty but getHeaders() not
body: <p>I am trying to parse the response header cookies for a GET request.</p>
  
  <p>For some reason, getCookies() is empty! I get a 200 Response but for some reason cannot access the cookies. I'm able to get the headers, though.</p>
  
  <p>Is it possible this website is hiding its cookies? What are some ways to retrieve hidden cookies?</p>
  
  <pre><code>$request = new HTTP_Request2($url, HTTP_Request2::METHOD_GET);
  $request2 = new HTTP_Request2($newUrl, HTTP_Request2::METHOD_POST);
  
  $response = $request-&gt;send();
  
  foreach ($response-&gt;getCookies() as $c)
  {
     request2-&gt;addCookies($c['name'], $c['value']);
  }
  </code></pre>
  
  <p>Cookies are being set with Javascript via (I peeked into their JS code)</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  document.cookie="MRHCId="+Math.round((new Date()).getTime()/1000)+"_0_3600; path=/"; 
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I send this cookie along with my PHP Post request?</p>