HttpVersion (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Template:HTTPRequest:HTTPVersion subtitle}}
{{Template:HttpRequest:HttpVersion subtitle}}
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.


This settable 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==
{{Template:HTTPRequest:HTTPVersion syntax}}
{{Template:HttpRequest:HttpVersion syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%httpreq</th>
<tr><th>%currentString</th>
<td>An instantiated HTTPRequest object.
<td>The string variable for the assignment of the current value of <var>HttpVersion</var>.</td></tr>
</td></tr>
<tr><th>httpRequest</th>
<tr><th>version</th>
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr>
<td>Identifies the version of HTTP to use on subsequent HTTP requests. Valid values are <code>1.0</code> or <code>1.1</code>. If not one of these values, the request is cancelled. If left unset, the default is <code>1.1</code>.
<tr><th>newString</th>
</td></tr>
<td>Identifies the version of HTTP to use on subsequent HTTP requests. Valid values are <code>'1.0'</code> or <code>'1.1'</code>. If not one of these values, the request is cancelled. If left unset, the default is <code>1.1</code>.</td></tr>
<tr><th>%curr</th>
</table>
<td>The string variable for the assignment of the current value of HTTPVersion.


</td></tr></table>
==See also==
==See also==
{{Template:HTTPRequest:HTTPVersion footer}}
{{Template:HttpRequest:HttpVersion footer}}

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