I don’t mean form athentication. You know how some webpage just have a popup in the browser with something along the line of “This webpage require authorization”? And you have to enter username/password or it return you a “HTTP Status Code – 401 Unauthorized” error? How do you set that up?
I assume this is done with post header right? Because it doesn’t have a form.
On the client end. I am posting using ServerXMLHTTP using the following code:
Dim connection As ServerXMLHTTP
Dim inXML As MSXML2.DOMDocument
Dim outXMLstr, inXMLstr As String
Dim itemsList As IXMLDOMNodeList
Dim itemNode As MSXML2.IXMLDOMNode
Set connection = New ServerXMLHTTP
Set inXML = New DOMDocument
Dim name As String
connection.Open "POST", "http://localhost:46284/", False, CStr("user"), CStr("pass")
In other word, how do I authenticate “user” and “pass” on the server side from the code above.
Set up basic authentication on the IIS for your site
Configure Basic Authentication (IIS 7)