title: How to stock my cookies from a curl request on a variable
body: <p>I'm trying to prevent CURL from storing the cookie session in a file. But I need these cookies for a second request. So I try a solution to get the cookie in a variable, but when I use "CURLOPT_HEADER true", I do not get the answer from the web service I need. Do you know how I could do this or if I could store my cookie in a file other than the file?</p>
  
  <p>I used this to get the cookie on a variable.</p>
  
  <p><a href="https://stackoverflow.com/questions/895786/how-to-get-the-cookies-from-a-php-curl-into-a-variable">how to get the cookies from a php curl into a variable</a></p>
  
  <p>So I would like to have a response with the web service answer and the cookie that I could re-use (with CURLOPT_COOKIE I think).</p>
  
  <p>Thank you</p>