title: Sending cookie in GET request in PHP
body: <p>I'm having some issues with an APP I'm developing. I'm making a GET request to a URL in order to get a XML file. Since it's a large file, it will be cached for, at least, 1 month as it doesn't change that much.</p>
  
  <p>I've simulated the request with Python easily because the only mandatory thing is to have a cookie which the page assigns to you once you enter the page.</p>
  
  <p>Here is the code, in Python:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import requests
  
  cookies = requests.get("http://www.someweb.com:9005/someDIR/index.jspx").cookies
  data = requests.get("http://www.someweb.com:9005/someDIR/Results?op=lp&amp;ls=All&amp;t=0.41461605788208544", cookies=cookies).content
  print data
  </code></pre>
  
  <p>I've tried to receive and send the cookie with cURL in PHP but I'm unable to do that. Any hints?</p>