473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

IFrame and basic authentication, username password?

Hi,

I have a web site where I display a webpage from another website in an
IFrame.

the 2 servers are on the local intranet and I'm using basic authentication.
The problem, when the IFrame appeared, the username / password is prompt
again to the end user.

So I try this:
http://username:password@server2>/....

this should work... but my problem:
how to encode special characters used in the password???
like @ # etc...???

a password like:
Pa#sw@rd should be encoded has... ???

this encoding doesn't works: Pa%23sw%40rd

there is another way? like jscript? redirection?

thanks.

Jerome.

Nov 19 '05 #1
2 6544
Jéjé <wi******@AAAhotmailBBB.com> wrote in news:eD8fXzgnFHA.1412
@TK2MSFTNGP09.phx.gbl:
So I try this:
http://username:password@server2>/....

this should work... but my problem:
how to encode special characters used in the password???
like @ # etc...???

a password like:
Pa#sw@rd should be encoded has... ???


Try Server.HTMLEncode. See if it works.

Of course you can't encode everything... i.e. the @ symbol between password
and server has to remain an @ symbol, else IE won't delimit the address
properly.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
..HTMLEncode result = # !
so there is no specific encoding

what result should I need to allow my password to be used in the URL?
how the # and @ characters must appeared?

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
Jéjé <wi******@AAAhotmailBBB.com> wrote in news:eD8fXzgnFHA.1412
@TK2MSFTNGP09.phx.gbl:
So I try this:
http://username:password@server2>/....

this should work... but my problem:
how to encode special characters used in the password???
like @ # etc...???

a password like:
Pa#sw@rd should be encoded has... ???


Try Server.HTMLEncode. See if it works.

Of course you can't encode everything... i.e. the @ symbol between
password
and server has to remain an @ symbol, else IE won't delimit the address
properly.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil Powell | last post by:
/*-------------------------------------------------------------------------------------------- This function will utilize the ability to use HTTP-based WWW Authentication, checking for the global...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
6
by: Magnus Jardeby | last post by:
I have a problem with basic authentication. I redirect a user from a page to another. I don't want to get the NT prompt login, I want the user to be logged in automatically. I want to send the...
6
by: Erez Shor | last post by:
Hi, I need to build and asp page which access a remote windows server's registry and create a registry key. In order for the ASP page to be able to access the registry on the remote server I need...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
13
by: Pete | last post by:
I'm cross posting from mscom.webservices.general as I have received no answer there: There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the...
6
by: fiziwig | last post by:
Hi, I've written my first attempt at basic authentication and it doesn't work. I thought I understood the specs, but I must be missing something obvious. Can anyone give me a hint as to what...
0
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I am currently working on the application that need to simulate basic authentication programmatically using user's credentials that are known. Basically, the need is for a single sign on with a...
2
by: =?Utf-8?B?d2NtY2FsaXN0ZXI=?= | last post by:
Hello all, I have a c# web application that is supposed to redirect the user to another website that is basically a black box to me. All I know is that it uses basic authentication and that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.