HttpVersion (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
(12 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Template: | {{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. | |||
==Syntax== | ==Syntax== | ||
{{Template: | {{Template:HttpRequest:HttpVersion syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%currentString</th> | ||
<td> | <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> | <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> | ||
</table> | |||
==See also== | ==See also== | ||
{{Template: | {{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 . |