Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Delphi, .NET, Asm (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   curl (https://forum.antichat.xyz/showthread.php?t=199925)

IgrikX 28.04.2010 00:57

curl
 
PHP код:

 CURL *curl;
  
UnicodeString table;
  
CURLcode result;
  
AnsiString exp="(id='s' value='(.*)')";// регулярка
  
curl curl_easy_init();
  if(
curl) {
  
curl_easy_setopt(curlCURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1;en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
  
curl_easy_setopt(curlCURLOPT_WRITEFUNCTION,Writer);
  
curl_easy_setopt(curlCURLOPT_VERBOSE1);
  
curl_easy_setopt(curlCURLOPT_WRITEDATA,&table);
  
curl_easy_setopt(curlCURLOPT_POSTtrue);
  
curl_easy_setopt(curlCURLOPT_URL,"http://login.vk.com/?act=login");
  
curl_easy_setopt(curlCURLOPT_HEADER0);
  
curl_easy_setopt(curlCURLOPT_NOBODY1);
  
curl_easy_setopt(curlCURLOPT_HTTPPOST1);
  
curl_easy_setopt(curlCURLOPT_COOKIEJAR"cookie.txt");
  
curl_easy_setopt(curlCURLOPT_COOKIEFILE"cookie.txt");
  
curl_easy_setopt(curlCURLOPT_REFERER"http://vkontakte.ru/index.php");
  
curl_easy_setopt(curlCURLOPT_POSTFIELDS"email=XXXXX@mail.ru&pass=XXXXX&expire=&vk=");
  
result curl_easy_perform(curl);

  
Memo1->Text table;
  
curl_easy_cleanup(curl); 

Почему выводит мало html тэгов, нет там тэгов ссылок?


Время: 12:46