username:password in url
- xptm
- Posts: 49
- Joined: September 3rd, 2003, 2:35 pm
username:password in url
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
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
- YoGee
- Posts: 130
- Joined: March 8th, 2004, 3:03 am
- Location: London
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 ...
http://support.microsoft.com/default.as ... s%3B834489
I don't know if you can get this to work in FF ...
- YoGee
- Posts: 130
- Joined: March 8th, 2004, 3:03 am
- Location: London
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
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
-
- Posts: 97
- Joined: December 8th, 2003, 7:48 am
- Contact:
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.
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.
- YoGee
- Posts: 130
- Joined: March 8th, 2004, 3:03 am
- Location: London
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
- xptm
- Posts: 49
- Joined: September 3rd, 2003, 2:35 pm
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...
I think i'll give up trying...
/usr/bin/bad
- YoGee
- Posts: 130
- Joined: March 8th, 2004, 3:03 am
- Location: London
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 ...
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 ...