Re: Authorize login to router
Re: Authorize login to router
- Subject: Re: Authorize login to router
- From: Julien Jalon <email@hidden>
- Date: Wed, 9 Jan 2002 17:55:39 +0100
Le mercredi 9 janvier 2002, ` 10:03 AM, Ivan Myrvold a icrit :
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?
You should be considering using the CFNetwork framework which can
produce the well formed request including the authentication one.
For more info, do a research on Google Apple and look at the headers in
the CFNetwork framework.
--
Julien Jalon
<
http://mapage.noos.fr/jalon>