Verb

Determines the HTTP request method. This property is set implicitly when using GetURL and PostURL methods.

Syntax

HTTPObject.Verb

Where:

  • Verb is a String (example: Get)
Example

This script will Send an OPTIONS http request:

Function Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'Set up the request type

HTTPobj.GetURL("/")

HTTPobj.Authentication = 1

HTTPobj.Verb = "OPTIONS"

'Send the OPTIONS request with our custom headers

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.RawResponseHeaders

End Function