HttpVersion (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (match syntax table to syntax template; edits and tags) |
||
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. | |||
==Syntax== | ==Syntax== | ||
{{Template:HttpRequest:HttpVersion syntax}} | {{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 HttpVersion.</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:HttpRequest:HttpVersion footer}} | {{Template:HttpRequest:HttpVersion footer}} |
Revision as of 09:13, 18 June 2011
Set HTTP protocol version for requests (HttpRequest class)
The HttpVersion 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
%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 . |