ProxyUser

代理身份验证的用户名。

语法

HTTPObject.ProxyUser

其中:

  • ProxyUser 是字符串(读/写)
示例

该脚本将执行 GET 请求,并打印返回代码。 将用户名和密码设置为 LanGuard_test

函数 Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'设置请求类型

HTTPobj.GetURL("/")

HTTPobj.ProxyUser = "LanGuard_test"

HTTPobj.Proxypassword = "LanGuard_test"

'发送 GET 请求

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.Body

End 函数