Cannot enable cookie in php curl Cannot enable cookie in php curl curl curl

Cannot enable cookie in php curl


I don't see where is the problem. The CURL is doing exactly what it supposes to do.

setcookie() sets cookie in response header to the client. _COOKIE contains value in request header. If you remove cookie file, CURL has no way to persist the cookie value you set.