Показать сообщение отдельно

  #6  
Старый 21.04.2010, 15:56
Gin
Участник форума
Регистрация: 11.09.2008
Сообщений: 107
С нами: 9296442

Репутация: 21
По умолчанию

Столкнулся с проблемой использую курл в с++ билдере объявляю опций CURLOPT_COOKIEFILE и CURLOPT_COOKIEJAR но кукисы не попадают cookiefile подскажите что не так вот код функции
Код:
String Authorize(CURL *curl,String url){
String data;
String cookiefile;
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,Writer);
curl_easy_setopt(curl, CURLOPT_WRITEDATA,&data);
curl_easy_setopt(curl, CURLOPT_URL,url);
curl_easy_setopt(curl, CURLOPT_HEADER , 1 );
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, cookiefile);
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, cookiefile);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST,  2);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
Form3->Label1->Caption=cookiefile;
return data;
}
 
Ответить с цитированием