Authorize login to router
Authorize login to router
- Subject: Authorize login to router
- From: Ivan Myrvold <email@hidden>
- Date: Wed, 9 Jan 2002 10:03:29 +0100
I am writing a Cocoa front end application to my Draytek ISDN router,
replacing the web browser interface.
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?
Ivan