• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Authorize login to router
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Authorize login to router
      • From: Louis Demers <email@hidden>
References: 
 >Authorize login to router (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: Database
  • Next by Date: Re: PDF on a NSView
  • Previous by thread: Authorize login to router
  • Next by thread: Re: Authorize login to router
  • Index(es):
    • Date
    • Thread