1 /*****************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: lib523.c,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
18 if (curl_global_init(CURL_GLOBAL_ALL
) != CURLE_OK
) {
19 fprintf(stderr
, "curl_global_init() failed\n");
20 return TEST_ERR_MAJOR_BAD
;
23 if ((curl
= curl_easy_init()) == NULL
) {
24 fprintf(stderr
, "curl_easy_init() failed\n");
25 curl_global_cleanup();
26 return TEST_ERR_MAJOR_BAD
;
29 curl_easy_setopt(curl
, CURLOPT_PROXY
, libtest_arg2
);
30 curl_easy_setopt(curl
, CURLOPT_URL
, URL
);
31 curl_easy_setopt(curl
, CURLOPT_PORT
, 19999L);
32 curl_easy_setopt(curl
, CURLOPT_USERPWD
, "xxx:yyy");
33 curl_easy_setopt(curl
, CURLOPT_VERBOSE
, 1L);
35 res
= curl_easy_perform(curl
);
37 curl_easy_cleanup(curl
);
38 curl_global_cleanup();