Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. CURL *curl;
  2. CURLcode res;
  3. curl = curl_easy_init ();
  4. curl_easy_setopt (curl, CURLOPT_URL, url);
  5. res = curl_easy_perform (curl);
  6. curl_easy_cleanup (curl);
  7. // Place to set logged = 1 if it's successful
  8. if (res == "Correct") {
  9. logged = 1;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement