cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Can't get in to password protected sites

From: Nielsen Linus <Linus.Nielsen_at_elema.siemens.se>
Date: Wed, 15 Nov 2000 16:48:37 +0100

Hi Kingsley!

Some questions:

Which version of Curl are you using?
What operating system are you running on?
What is the output of

curl -v -u myuser:mypass http://protected.site.com/

Maybe it is a redirection.

Try using

curl -L -u myuser:mypass http://protected.site.com/

Does that help?

/Linus

> -----Original Message-----
> From: Kingsley Tart [mailto:kingsley_at_skymarket.co.uk]
> Sent: den 15 november 2000 16:16
> To: Curl Mailing List
> Subject: Can't get in to password protected sites
>
>
> I'm having trouble getting into password protected sites.
> Supposing the
> site is http://protected.site.com/ and the username and password are
> "myuser" and "mypass", this is what I'm typing:
>
> curl -u myuser:mypass http://protected.site.com/
>
> If I go to the site in a browser and enter the user name and password
> when prompted, I get in. However, the response to cURL is as if I've
> clicked "Cancel" on the password dialog box. If I miss out
> the password,
> ie:
>
> curl -u myuser http://protected.site.com/
>
> I get prompted for the password but this does not help :-(
>
> Am I doing something daft (again) ?
>
> --
> Cheers,
> Kingsley
> Skymarket Ltd.
> ICQ: 91927904
>
>
>
Received on 2000-11-15