cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: https redirect problem?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 13 Oct 2004 18:50:59 +0200 (CEST)

On Wed, 13 Oct 2004, Iris Jing wrote:

> I still have one concern regarding user-agent. As Linus suggest, I can use
> curl_easy_setopt(curl, CURLOPT_USERAGENT,"bla bla") to set up the user-agent
> before I send out the request, but my problem is: what should I put in "bla
> bla".

Yes, that is your problem.

> Is there any way to figure out what kind of header the https server
> requires?

Yes, by looking in the source code they use or by asking the admins of the
site.

> I guess I have to make the remote server satisfied with the header I sent
> before it would allow me to get the target file...

Since the curl command line tool worked, a first shot could be to clone its
user-agent and see if it works.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-13