IFrame and basic authentication, username password?

  • Thread starter =?iso-8859-1?B?Sulq6Q==?=
  • Start date
?

=?iso-8859-1?B?Sulq6Q==?=

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.
 
L

Lucas Tam

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.
 
?

=?iso-8859-1?B?Sulq6Q==?=

..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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top