HTTPVersion
确定 HTTP 版本。 如未设置,HTTPVersion 将为“HTTP/1.1”
语法
HTTPObject.HTTPVersion
其中:
HTTPVersion
是字符串,例如:HTTP/1.1
示例
该脚本将发送 HTTP/1.0 请求:
函数 Main
Dim HTTPObj as Object
ip = "www.gfi.com"
port = 80
Set HTTPobj = HTTP.Connect (ip,port)
'设置请求类型
HTTPobj.GetURL("/")
HTTPobj.Authentication = 1
HTTPobj.HTTPVersion = "HTTP/1.0"
'使用我们自定义的标头发送 GET 请求
HTTPResponse = HTTPobj.SendRequest ()
echo HTTPobj.RawResponseHeaders
End 函数