[COLUG] use wget to download a password web page

Steven Huwig shuwig at columbus.rr.com
Fri Dec 8 17:56:32 EST 2006


On Dec 8, 2006, at 4:11 PM, Matthew W. Miller wrote:

> On Mon, Dec 04, 2006 at 02:44:15PM -0500, Vincent Herried wrote:
>> I'm trying to use wget to access my account with
>> the columbus library web page.
>>
>> Anyone had any success with wget reading
>> a password protected web page?
>
> Yes, though I haven't tried CML's login system specifically.
> --http-user and --http-password (or the 'user at password:...' method)  
> can
> be used for HTTP authentication; if the server's trying to set  
> cookies,
> use the --load-cookies and --save-cookies options to point to a  
> file to
> stash 'em in.  You'll have to analyze the login form's HTML code to  
> see
> exactly what it's expecting.

It doesn't use HTTP authentication. It just looks for form data
named "patronid" and "patronpin".  The Python script I sent
earlier works.

-- Steve


More information about the colug432 mailing list