cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl usage with https

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 3 May 2006 09:24:00 -0700

On Wed, May 03, 2006 at 07:50:18AM -0700, Ravi Malghan wrote:
> It looks like everything is going good with no errors.
> But it still doesn't download the expected file.
> Wondering if there is anything here that might point
> me to the problem?
[...]
> < HTTP/1.1
> 302 Found
> < Date: Wed, 03 May 2006 14:38:25 GMT
> < Server: Apache/1.3.29
> < P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR TAIa
> OUR NOR UNI"
> < X-Powered-By: PHP/4.3.3
> < Set-Cookie:
> PHPSESSID=f5ba0aaaa185a96e6eaa6622841929b1; path=/
> < Set-Cookie:
> PHPSESSID=646e1bd8920679150836ecb2fbcc3161; path=/
> < Location: /

You could add the -L option to get curl to follow the HTTP 302 redirect you get
back, but since it redirects you to the root and you're looking to download a
file, it's likely you need more than this. Have you compared the trace from
curl with a trace from a web browser? There's probably something in your
request that you're missing.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-05-03