lib523.c 414 B

1234567891011121314151617
  1. #include "test.h"
  2. int test(char *URL)
  3. {
  4. CURLcode res;
  5. CURL *curl = curl_easy_init();
  6. curl_easy_setopt(curl, CURLOPT_PROXY, arg2);
  7. curl_easy_setopt(curl, CURLOPT_URL, URL);
  8. curl_easy_setopt(curl, CURLOPT_PORT, 19999);
  9. curl_easy_setopt(curl, CURLOPT_USERPWD, "xxx:yyy");
  10. curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
  11. res = curl_easy_perform(curl);
  12. curl_easy_cleanup(curl);
  13. return (int)res;
  14. }