curl-library
RE: no response return when using https in libcurl
Date: Wed, 19 Jun 2002 15:58:33 -0700
You are right, if no writefunction is defined the respose is
dumped on stdout.
Send me your project (dsw, dsp, c) files and I'll try to figure out
what's wrong if I can.
Miklos
-----Original Message-----
From: Victor Hu [mailto:VictorHu_at_blue-world.net]
Sent: Wednesday, June 19, 2002 3:57 PM
To: Miklos Nemeth
Cc: 'libcurl Mailing list'
Subject: RE: no response return when using https in libcurl
Miklos,
The response is displayed in the command prompt windows. Yes, if I need
to get the
response in the application, I should do in the way you told me to do.
I've got some code for that written already. But first of all, I need to
get the response from the https website.
Thanks,
Victor
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
-----"Miklos Nemeth" <mnemeth_at_kfkisystems.com> wrote: -----
To: "'Victor Hu'" <VictorHu_at_blue-world.net>
From: "Miklos Nemeth" <mnemeth_at_kfkisystems.com>
Date: 06/19/2002 03:40PM
cc: "'libcurl Mailing list'" <curl-library_at_lists.sourceforge.net>
Subject: RE: no response return when using https in libcurl
Aah, OK, now I understand your problem.
Sorry that I misunderstood first.
However, in your code how do you receive the response.
You should have something like:
curl_easy_setopt(curl_handle,CURLOPT_WRITEFUNCTION,MemoryStruct_WriteMem
oryCallback);
curl_easy_setopt(curl_handle,CURLOPT_FILE,chunk);
HTH,
Miklos
-----Original Message-----
From: Victor Hu [mailto:VictorHu_at_blue-world.net]
Sent: Wednesday, June 19, 2002 3:25 PM
To: Miklos Nemeth
Cc: 'libcurl Mailing list'
Subject: RE: no response return when using https in libcurl
Miklos,
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,
Victor
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
-----"Miklos Nemeth" <mnemeth_at_kfkisystems.com> wrote: -----
To: "'Victor Hu'" <VictorHu_at_blue-world.net>, "'libcurl Mailing list'"
<curl-library_at_lists.sourceforge.net>
From: "Miklos Nemeth" <mnemeth_at_kfkisystems.com>
Date: 06/19/2002 02:32PM
Subject: RE: no response return when using https in libcurl
Victor,
Everything is all right with the responses, they are legal HTTP
responses.
Actually, what is your problem with them?
You can try other secure URLs to test your application:
https://demo.trcinc.com
https://ipgtst.paymentech.net:3443
Or, you can set up your own SSL server to play with.
Miklos
-----Original Message-----
From: curl-library-admin_at_lists.sourceforge.net
[mailto:curl-library-admin_at_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 libcurl
I have tried "curl_global_init(CURL_GLOBAL_DEFAULT)", but it's not
useful.
Thanks,
Victor
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_at_haxx.se> wrote: -----
To: Victor Hu <VictorHu_at_blue-world.net>
From: Daniel Stenberg <daniel_at_haxx.se>
Date: 06/19/2002 06:38AM
cc: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
Subject: Re: no response return when using https in libcurl
On 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/
------------------------------------------------------------------------
---- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf
<<<
=
=
----------------------------------------------------------------------------
Bringing you mounds of caffeinated joy
>>> http://thinkgeek.com/sf <<<
Received on 2002-06-20