cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: no response return when using https in libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 18 Jun 2002 09:54:15 +0200 (MET DST)

On Mon, 17 Jun 2002, Victor Hu wrote:

[sample code cut out]

> When I run it in VC++, a page from curl.haxx.se was return. If I change
> the URL into https://curl.haxx.se, no information is returned.

What if you enable VERBOSE and HEADER ?

What if you try other SSL sites like https://www.openssl.org/ ?

I'd like to point out here in all friendlyness that I do ask you to *not* use
the curl site as test target for your programs. It has a fair amount of work
to do anyway, without this extra load.

> In the command line, if I run "curl https://curl.haxx.se", a page called
> 401 Authorization Required will be returned.

I'm not sure why this happens. But a quick glance shows that curl uses
curl_global_init() for example, which your program doesn't.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<
Received on 2002-06-18