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?
I used this to get the cookie on a variable.
how to get the cookies from a php curl into a variable
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).
Thank you