curl-users
Re: log in with authentication problem
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 16 Apr 2007 13:55:29 -0700
Date: Mon, 16 Apr 2007 13:55:29 -0700
On Mon, Apr 16, 2007 at 01:46:03PM -0700, Guirong Wang wrote:
> I am trying to log into a web page with the corect user name and password using
> the following command (on Linux):
> curl -o temp.html -d "user=username&password=\$password*\$"
> https://secure.site.com
> but failed with the following message in the temp.html file:
[...]
> HTTP/1.1 401 Authorization Required
This error code indicates that the site expects HTTP login credentials,
not an application-level login which is what you tried to do. Use
the -u option to set your name and password.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-04-16