1 /*****************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: lib512.c,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
13 /* Test case code based on source in a bug report filed by James Bursa on
23 code
= curl_global_init(CURL_GLOBAL_ALL
);
24 if(code
== CURLE_OK
) {
26 curl
= curl_easy_init();
29 curl_easy_setopt(curl
, CURLOPT_VERBOSE
, 1L);
30 curl_easy_setopt(curl
, CURLOPT_HEADER
, 1L);
32 curl2
= curl_easy_duphandle(curl
);
35 code
= curl_easy_setopt(curl2
, CURLOPT_URL
, URL
);
36 if(code
== CURLE_OK
) {
38 code
= curl_easy_perform(curl2
);
47 curl_easy_cleanup(curl2
);
52 curl_easy_cleanup(curl
);
57 curl_global_cleanup();