Cooler_

test post+cooie

Jul 24th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <curl/curl.h>
  3.  
  4. int main(void)
  5. {
  6.   CURL *curl;
  7.   CURLcode res;
  8.  
  9.   curl = curl_easy_init();
  10.   if(curl)
  11.   {
  12.     curl_easy_setopt(curl, CURLOPT_URL, "http://www.WebbotsSpidersScreenScrapers.com/form_analyzer.php");
  13. curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");
  14.     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "bugsec=legals&floripa=praia+shows");
  15.      res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, "Set-Cookie: quem = nozes");
  16.     res = curl_easy_perform(curl);
  17.     curl_easy_cleanup(curl);
  18.   }
  19.   return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment