Getting SESSION_ID from skrill server Getting SESSION_ID from skrill server curl curl

Getting SESSION_ID from skrill server


Try adding cookies support

$fh = fopen("cookies.txt", "a+") or die("Can't open file!");fclose($fh);$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt");curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");


When you set CURLOPT_POSTFIELDS with an array, the request will be sent as multipart/form-data, try changing that line to:

curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));