HttpUser

Username for the HTTP Authentication.

Syntax

HTTPObject.HttpUser

Where:

  • HttpUser is a String (read/write)
Example

This script will do a GET request and print out the return code. It sets the username and password as LanGuard_test:

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("/")

HTTPobj.HTTPUser = "LanGuard_test"

HTTPobj.HTTPpassword = "LanGuard_test"

'Send the GET request

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.Body

End Function