username:password in url

User Help for Mozilla Firefox
Post Reply
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

username:password in url

Post by xptm »

Hello:

I was trying to use http://xptm:notmypassword@http://mail.sapo.pt/ to try to go to my mail directly. I've searched the web and found that IE doesn´t support this anymore, but i'm using FX...

Well, in FX doesn´t work either and strngely it redirects me to... http://www.microsoft.com/ !!!!!

Is this possible?

Thanks
/usr/bin/bad
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

Forget the redirect thing, that's beacuse i have about:config keyword.enabled = true.

But the question remains. It's not possible in FX to use username:password url?
/usr/bin/bad
User avatar
YoGee
Posts: 130
Joined: March 8th, 2004, 3:03 am
Location: London

Post by YoGee »

You can "fix" IE:

http://support.microsoft.com/default.as ... s%3B834489

I don't know if you can get this to work in FF ...
User avatar
YoGee
Posts: 130
Joined: March 8th, 2004, 3:03 am
Location: London

Post by YoGee »

Interesting I've just tried this in FF and it works ...

http://username:password@xxxxxxxxx.net/xxxxxx/

logs straight in.

There is a related bug report here:

http://bugzilla.mozilla.org/show_bug.cgi?id=232567
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

Maybe it's a server setting, and my mail server doesn´t support it...
/usr/bin/bad
mad_goldfish
Posts: 97
Joined: December 8th, 2003, 7:48 am
Contact:

Post by mad_goldfish »

Maybe you mistyped it in here, but shouldn't the original url read:
http://xptm:notmypassword@mail.sapo.pt/

i.e. you don't want the second http://
I think that will make FX try to connect to the site http:, which as you noticed gets redirected to Microsoft if redirection is on.
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

Yes, you're right, but with the correct URL it goes to the login page. Since YoGee did this, i suppose it depend on the server ...
/usr/bin/bad
User avatar
YoGee
Posts: 130
Joined: March 8th, 2004, 3:03 am
Location: London

Post by YoGee »

xptm wrote:Yes, you're right, but with the correct URL it goes to the login page. Since YoGee did this, i suppose it depend on the server ...


"Login page"? That syntax only works for sites that use basic authentication. If it's a form based login you would have to do something like:

http://where_the_form_gets_posted_to?lo ... osted=xxxx
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

Well, i did look at the page source code. That will be the case if it were a GET method. But it is a POST method directed to a php script. I did try http://mail.sapo.pt/imp/login.php?url=% ... ss=xxxxxxx (the input field names are imapuser and pass) but that goes to the login page with the inapuser allready filled.

I think i'll give up trying...
/usr/bin/bad
User avatar
YoGee
Posts: 130
Joined: March 8th, 2004, 3:03 am
Location: London

Post by YoGee »

Don't think it will work with a GET ...

You can do this: (replace xxxxx with username, yyyyy with password, save as whatever.html and open)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<body style="" onload="setFocus()">
<form action="http://mail.sapo.pt/imp/redirect.php" method="post" name="implogin">
<input type="hidden" name="actionID" value="" />
<input type="hidden" name="url" value="/login.php" />
<input type="hidden" name="mailbox" value="INBOX" />
<input type="hidden" name="frameset" value="" />
<input type="text" name="imapuser" value="xxxxx" size="15" class="formbox" tabindex="1">
<input type="password" name="pass" value="yyyyy" size="15" class="formbox" tabindex="2">
</form>
<script>
document.implogin.submit();
</script>
</body>
</html>

Probably not very helpful, but it gave me something to do for 10 minutes ...
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

Eh eh eh, excelent! It works ok and it gives what i want. Two bookmarks on my Toolbar to open my mail without having to type the usr/pwd every time...

Thanks a lot for your... 10 minutes :)
/usr/bin/bad
Guest
Guest

Post by Guest »

No problem. Glad to help.
User avatar
YoGee
Posts: 130
Joined: March 8th, 2004, 3:03 am
Location: London

Post by YoGee »

Oops. That was from YoGee btw.
User avatar
xptm
Posts: 49
Joined: September 3rd, 2003, 2:35 pm

Post by xptm »

:D :D :D
/usr/bin/bad
Post Reply