cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: redirecting an http download

From: bruce <badouglas_at_gmail.com>
Date: Mon, 1 Feb 2010 06:44:31 -0800

Hi Kose...

An example of the curl usage:

curl -v -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" -b
lcookie.lwp -c lcookie.lwp --output "ctest3.dat" -e
"https://cmshr.sjsu.edu..." -L "https://cmshr.sjsu.ed...."

the
 -b - the cookie file if needed
 -c -the cookie file if needed

--output -file to write output to
-e -the referer if needed
-L -url to fetch, and follow any redirects..

good luck..

On Mon, Feb 1, 2010 at 4:50 AM, Jose Morales <jemo07_at_gmail.com> wrote:
> Hi,
>
>
> I am new to curl and was looking now for some time on how to redirect a download of a curl file like the following example:
>
>
> culr -O "http://mydomain.com/whatever-path/xyz.cgi?idorsomthing=1234565"
>
> I want to save this to foo.out.
>
> so I attemted the simple command to test it:
>
> culr -O "http://mydomain.com/whatever-path/xyz.cgi?idorsomthing=1234565" > foo.out
>
> But it does not work as expected, I get two file the foo.out empty and "xyz.cgi?idorsomthing=1234565"
>
> How can I manage this?
>
> Thank you all!
>
> Regards,
>
>
> Jose Morales
> jemo07_at_gmail.com
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ:        http://curl.haxx.se/docs/faq.html
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-01