HttpVersion (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template; edits and tags)
mNo edit summary
 
Line 1: Line 1:
{{Template:HttpRequest:HttpVersion subtitle}}
{{Template:HttpRequest:HttpVersion subtitle}}
The <var>HttpVersion</var> settable method lets you select the HTTP Protocol version for HTTP requests.  If referenced, it returns the version currently in use by the object.
The <var>HttpVersion</var> method lets you select the HTTP Protocol version for HTTP requests.  If referenced, it returns the version currently in use by the object.


==Syntax==
==Syntax==
Line 7: Line 7:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%currentString</th>
<tr><th>%currentString</th>
<td>The string variable for the assignment of the current value of HttpVersion.</td></tr>
<td>The string variable for the assignment of the current value of <var>HttpVersion</var>.</td></tr>
<tr><th>httpRequest</th>
<tr><th>httpRequest</th>
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr>
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr>

Latest revision as of 20:03, 21 June 2011

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