HttpVersion (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:HttpRequest:HttpVersion subtitle}}
[[Category:HTTPRequest methods|HTTPVersion property]]
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==
<p class="syntax">%httpreq:HTTPVersion = version
{{Template:HttpRequest:HttpVersion syntax}}
 
%curr = %httpreq:HTTPVersion
</p>
 
===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==
{{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