Authentication
Enables or disables HTTP and Proxy authentication. Authentication is implicitly set to TRUE if ProxyUser, ProxyPassword, HttpUser and HttpPassword are set.
Syntax
HTTPObject.Authentication
Where:
Authentication
is BOOLEAN (read/write)
Example
This script will do a GET request and print out the return code:
Function Main
Dim HTTPObj as Object
ip = "www.gfi.com"
port = 80
Set HTTPobj = HTTP.Connect (ip,port)
'Set up the request type
HTTPobj.GetURL("/")
'to pass through the proxy with automatic authentication
'Authentication needs to be set to 1
HTTPobj.Authentication = 1
'Send the GET request
HTTPResponse = HTTPobj.SendRequest ()
echo HTTPResponse
End Function