Как вы, ребята, знаете, вы можете отправлять куки с запросом Curl.Итак, вот пример:
<?php
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
/* get cookies from an existing file */
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
?>
Но каков формат /tmp/cookies.txt
?
Спасибо!