Login through Link

Hey,

Can anyone tell me why the link beneath doesn't work in MIE? It works fine
in FireFox....

<a href='http://username:password [at] www.mysite.com/bleh/logout'>Link</a>

thnx
A.T.
Ang Talunin [ Do, 30 Dezember 2004 15:44 ] [ ID #559305 ]

Re: Login through Link

Ang Talunin wrote:
> Can anyone tell me why the link beneath doesn't work in MIE? It works
> fine in FireFox....
>
> <a href='http://username:password [at] www.mysite.com/bleh/logout'>Link</a>
>

One of the service packs disabled this feature in MIE.


JW
Janwillem Borleffs [ Do, 30 Dezember 2004 16:31 ] [ ID #559306 ]

Re: Login through Link

>> Can anyone tell me why the link beneath doesn't work in MIE? It works
>> fine in FireFox....
>>
>> <a href='http://username:password [at] www.mysite.com/bleh/logout'>Link</a>
>>
>
> One of the service packs disabled this feature in MIE.

Do you know a way to this anyway?
Ang Talunin [ Do, 30 Dezember 2004 16:37 ] [ ID #559307 ]

Re: Login through Link

Ang Talunin wrote:
> Do you know a way to this anyway?

Not really, although some sites set a cookie ones the login is successful.
When this is the case with the site, you could connect to it with fsockopen,
send the credentials through fputs (that would be, per example, in the
format
fputs("Authorization: basic " . base_64encode("username:password") .
"\r\n")) and try to set the cookie.

Coming to think of it, this will probably fail because you cannot set a
cookie for the remote server, which leave this suggestion only as a
thought...


JW
Janwillem Borleffs [ Do, 30 Dezember 2004 20:39 ] [ ID #559893 ]

Re: Login through Link

Isn't there a nice way to do this with sending a header?
Ang Talunin [ Fr, 31 Dezember 2004 18:00 ] [ ID #560880 ]

Re: Login through Link

Ang Talunin wrote:
> Isn't there a nice way to do this with sending a header?

Nope
Janwillem Borleffs [ Fr, 31 Dezember 2004 20:41 ] [ ID #561195 ]
PHP » alt.php » Login through Link

Vorheriges Thema: .htaccess/PHP5 (as CGI) problem
Nächstes Thema: Disallow browser access