1 /*****************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: lib501.c,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
18 (void)URL
; /* we don't use this */
20 if (curl_global_init(CURL_GLOBAL_ALL
) != CURLE_OK
) {
21 fprintf(stderr
, "curl_global_init() failed\n");
22 return TEST_ERR_MAJOR_BAD
;
25 if ((curl
= curl_easy_init()) == NULL
) {
26 fprintf(stderr
, "curl_easy_init() failed\n");
27 curl_global_cleanup();
28 return TEST_ERR_MAJOR_BAD
;
31 curl_easy_setopt(curl
, CURLOPT_HEADER
, 1L);
33 res
= curl_easy_perform(curl
);
35 curl_easy_cleanup(curl
);
36 curl_global_cleanup();