Passing authentication information in html format

HIE

I have a html form and when submitting a request to the url, I also want to pass the crendtials using basic-auth

Can anyone share some sample code on how to do this?

+2


source to share


1 answer


You can set the url of the form action attribute

http://username:password@www.yourserver.com/somewebpage.html

      



but I don't think this will work with Internet Explorer. There have been some spammers abusing this and Microsoft turned it off.

0


source







All Articles