Re: Authorize login to router
Re: Authorize login to router
- Subject: Re: Authorize login to router
- From: Louis Demers <email@hidden>
- Date: Wed, 9 Jan 2002 18:46:08 -0500
At 11:00 AM -0500 1/9/02, Evan Coyne Maloney wrote:
On Wednesday, January 9, 2002, at 04:03 AM, Ivan Myrvold wrote:
However, when using the web browser, I have to login to the router
with my name and password. I solved that preliminary by looking at
the http message sent by the browser when it logged in, and copied
the "Extension:
Security/Remote-Passphrase\r\nAuthorization: Basic YWRta..."
string at the end of the httpRequest.
But this hardcodes the login name and password in the code. It
would be much better if I had a preferences window to type in the
name and password in. But how do I translate that into the cryptic
http authorization request?
Look into curl, it handles login and passwords easily and will permit
you to change them at run times, iether through the curl api or by
formatting the url as
http://login:password@hostname
--
Louis Demers ing.
email@hidden
email@hidden