cURL / Mailing Lists / curl-users / Single Mail


RE: Download files from HTTP

From: <>
Date: Mon, 3 Nov 2008 14:01:05 +0100

Thank you Ralph!!
It works now. (After overcoming the problem with ampersand in the URL).
Regards, Chi


[] On Behalf Of Ralph Mitchell
Sent: zaterdag 1 november 2008 3:39
To: the curl tool
Subject: Re: Download files from HTTP

On Thu, Oct 30, 2008 at 11:59 AM,
<> wrote:

        Thank you for the tip. I'm new to CURL, but find it great tool.
        Now I'm able to logon with cookies and redirection.
        curl -L -c newcookies.txt -d
"" -x webproxy:8080
        But still can't download the file. What am I doing wrong?
        curl -L -O -c newcookies.txt -x webproxy:8080

I think you missed a bit - the "-c cookiejar" only *writes* cookies to a
file. On subsequent calls you need to tell curl to *read* the
cookiejar. I do every curl call like this:

   curl -s -S -L -b cookies -c cookies -x .........

Ralph Mitchell

List admin:
Received on 2008-11-03