HttpPassword
HTTP 身份验证的密码。
语法
HTTPObject.HttpPassword
其中:
HttpPassword
是字符串(读/写)
示例
该脚本将执行 GET 请求,并打印返回代码。 将用户名和密码设置为 LanGuard_test
:
函数 Main
Dim HTTPObj as Object
ip = "www.gfi.com"
port = 80
Set HTTPobj = HTTP.Connect (ip,port)
'设置请求类型
HTTPobj.GetURL("/")
HTTPobj.HTTPUser = "LanGuard_test"
HTTPobj.HTTPpassword = "LanGuard_test"
'发送 GET 请求
HTTPResponse = HTTPobj.SendRequest ()
echo HTTPobj.Body
End 函数