cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTPS entering username and password

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 4 Feb 2005 21:48:44 -0600

One time I found that I had to fetch the login page and *then* re-do
the fetch and hand it the "-u userid:passwd". The initial page fetch
sent a cookie that was supposed to be handed back along with the
authorization. That's assuming the site normally gives you a popup
authentication window for Basic Auth or something similar.

If the login page is actually a web page, you'll need to fetch the
page, extract the form, fill in the userid/passwd, then POST the
variables back to the form action url.

Ralph Mitchell

On Fri, 4 Feb 2005 13:51:51 -0400, David Stephenson
<DStephenson_at_fans.uwi.tt> wrote:
> On a browser the site would put a GUI in which to enter the username and
> password for the site. I have tried various options suggested in the manual
> for entering this information (-u etc) but I always get the web page back
> "you are not authorized to view...". Is there something I am missing here.
>
Received on 2005-02-05