curl-library
RE: no response return when using https in libcurl
Date: Wed, 19 Jun 2002 15:25:03 -0700
I could not get the response from the destination when I used https URLs.
I traced the networking and found that even no request was sent the destination when the URL was https. (But when URL was http, everything was fine)
I thought maybe I did not have correct environment for curling https URL. But in the windows command line, I can curl https correctly. For your convenience, I put my code in the following:
-----------------------------------------------------------------------------------------------------------------
CURL *curl;
CURLcode res;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://hyperion.blue-world.net");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
curl_global_cleanup();
------------------------------------------------------------------------------------------------------------------------------------
Do you have any idea?
Thanks,
blue world information technology inc.,
suite 700, 555 west hastings st,
vancouver, bc, v6b 4n5, canada
tel: (604) 443-5007, fax: (604) 443-5096
http://www.blue-world.net
To: "'Victor Hu'" <VictorHu@blue-world.net>, "'libcurl Mailing list'" <curl-library@lists.sourceforge.net>
From: "Miklos Nemeth" <mnemeth@kfkisystems.com>
Date: 06/19/2002 02:32PM
Subject: RE: no response return when using https in libcurl
-----Original Message-----
From: curl-library-admin@lists.sourceforge.net [mailto:curl-library-admin@lists.sourceforge.net] On Behalf Of Victor Hu
Sent: Wednesday, June 19, 2002 9:53 AM
To: libcurl Mailing list
Subject: Re: no response return when using https in libcurlI have tried "curl_global_init(CURL_GLOBAL_DEFAULT)", but it's not useful.Thanks,Victor---------------------------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<<
blue world information technology inc.,
suite 700, 555 west hastings st,
vancouver, bc, v6b 4n5, canada
tel: (604) 443-5007, fax: (604) 443-5096
http://www.blue-world.net
-----Daniel Stenberg <daniel@haxx.se> wrote: -----
To: Victor Hu <VictorHu@blue-world.net>
From: Daniel Stenberg <daniel@haxx.se>
Date: 06/19/2002 06:38AM
cc: libcurl Mailing list <curl-library@lists.sourceforge.net>
Subject: Re: no response return when using https in libcurlOn Tue, 18 Jun 2002, Victor Hu wrote:> I have used "curl_global_init(CURL_GLOBAL_SSL)" before I called> curl_easy_init().But you're using Windows, right?Did you init winsock yourself then I presume or why didn't you setCURL_GLOBAL_WIN32 as well?If you check the curl sources, it uses: curl_global_init(CURL_GLOBAL_DEFAULT);-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/