How to login with cURL with POST and Cookie How to login with cURL with POST and Cookie curl curl

How to login with cURL with POST and Cookie


It could be cause of the missing attribute

curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);

This way curl will be forced to ignore 'old' session cookies and start a new session instead.