Re: Authorize login to router
Re: Authorize login to router
- Subject: Re: Authorize login to router
- From: Evan Coyne Maloney <email@hidden>
- Date: Wed, 9 Jan 2002 11:00:20 -0500
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?
If I'm remembering my HTTP properly, the scrambled part of the value for
the "Authorization" header when using basic authentication comes from the
Base 64 value of:
<username>:<password>
So, if your user name is "paranoid" and your password is "android", first
create the string:
paranoid:android
And then take the Base 64 value of the string. That's the value you should
put in the header.
For more information, do a web search for "HTTP RFC". I believe this one is
defined in the RFC 1945.
Evan Coyne Maloney____________________________________________________
The six-legged fire-breathing dog email@hidden