HttpVersion (HttpRequest property)

From m204wiki
Revision as of 20:03, 21 June 2011 by JAL2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set HTTP protocol version for requests (HttpRequest class)

The HttpVersion method lets you select the HTTP Protocol version for HTTP requests. If referenced, it returns the version currently in use by the object.

Syntax

%currentString = httpRequest:HttpVersion httpRequest:HttpVersion = newString

Syntax terms

%currentString The string variable for the assignment of the current value of HttpVersion.
httpRequest A previously defined and instantiated HttpRequest object.
newString Identifies the version of HTTP to use on subsequent HTTP requests. Valid values are '1.0' or '1.1'. If not one of these values, the request is cancelled. If left unset, the default is 1.1.

See also