views:

69

answers:

1

hie

i have a html form and while posting a request to a url i also want to pass crendtials using basic-auth

can anybody please share a code example on how to do that?

A: 

You could set the url of the form's action attribute to

http://username:[email protected]/somewebpage.html

but I don't think this will work with Internet Explorer. There were some spammers abusing this and Microsoft disabled it.

ZippyV
hmm any other way which works with ie as well?
Vik
The user can always fill in the popup dialog manually.
ZippyV
well in ie form post does not happen at all in this format.
Vik