curl-users
RE: Problem downloading file from a redirect
Date: Mon, 9 May 2005 23:28:09 +1000
Works now. I had to split it into two separate calls, now it properly saves
the gz file with this syntax:
curl -c cookies.txt -b cookies.txt -o c:\hrpt\keplers\SpecialInterest.gz
http://www.space-track.org/perl/dl.pl?ID=24
Cheers
- Balt
> -----Original Message-----
> From: curl-users-bounces_at_cool.haxx.se
> [mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
> Sent: Montag, 9. Mai 2005 22:20
> To: curl tool talk
> Subject: Re: Problem downloading file from a redirect
>
> On Mon, 9 May 2005 balt3_at_inside.net wrote:
>
> > <meta http-equiv='Refresh' content='0;URL=home.pl'> If you
> see this,
> > your system does not support automatic redirects. <a
> > href='home.pl'>Click here to continue</a> </body></html>
> >
> > Weird, I did specify the -L option to follow redirects.
>
> -L makes curl follow HTTP redirects, not this kind of HTML redirects.
>
> You need to manually "follow" this, or possibly write a
> script that can extract the URL and (re-)invoke curl properly.
>
> --
> Commercial curl and libcurl Technical Support:
> http://haxx.se/curl.html
>
Received on 2005-05-09