HTTPVersion

Determines the HTTP version. If not set, the HTTPVersion will be “HTTP/1.1”

Syntax

HTTPObject.HTTPVersion

Where:

  • HTTPVersion is a String (example: HTTP/1.1)
Example

This script will Send an HTTP/1.0 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.HTTPVersion = "HTTP/1.0"

'Send the GET request with our custom headers

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.RawResponseHeaders

End Function