動作
決定 HTTP 要求方法。 使用 GetURL 和 PostURL 方法時,將隱式設定該屬性。
語法
HTTPObject.Verb
其中:
Verb
是字串,例如:Get
範例
此指令碼將傳送 OPTIONS http 要求:
Function 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 Function