cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Trying to download authenticated file

From: Ralph Mitchell <rmitchell_at_eds.com>
Date: Tue, 13 May 2003 00:40:37 -0500

Daniel Stenberg wrote:

> On Sat, 10 May 2003, Ed Graf wrote:
>
> > I get a pdf file with text showing a 403 file explaining the browser needs
> > cookies???
>
> You probably need to do some kind of login-procedure first to get the correct
> set of cookies, and then get that specific file.
>
> It's hard to guess, but if a single-file download requires cookies, it is
> usually that way.

Try fetching the page without the userid:password first, then do it again with
the userid:passwd. Both times, send and save the cookies with the -b & -c
flags. Some servers seem to need to send the "not-logged-in-yet" cookie before
being able to handle "-u userid:passwd".

Ralph Mitchell

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-13