Answer the question
In order to leave comments, you need to log in
Why does PHP curl re-save incorrect cookies to a file?
I write like this
curlt_it
if need login -> login
again curl_it but with right cookies
return
1) require_once(2)
1) curlt_it
2) bad cookies
2) if need login -> login
2) good cookies
2) again curl_it but with right cookies
2) good cookies
2) return
1) bad cookies
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
Answer the question
In order to leave comments, you need to log in
My ignorance in php...
Everything after return doesn't work, but I had curl close after it and CURLOPT_COOKIEJAR didn't work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question