Verb

确定 HTTP 请求方法。 使用 GetURL 和 PostURL 方法时,将隐式设置该属性。

语法

HTTPObject.Verb

其中:

  • Verb 是字符串,例如: Get
示例

此脚本将发送 OPTIONS http 请求:

函数 Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'设置请求类型

HTTPobj.GetURL("/")

HTTPobj.Authentication = 1

HTTPobj.Verb = "OPTIONS"

'使用我们自定义的标头发送 OPTIONS 请求

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.RawResponseHeaders

End 函数