Port (HttpRequest property): Difference between revisions

From m204wiki
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:Port subtitle}}
{{Template:HttpRequest:Port subtitle}}
The <var>Port</var> settable property identifies the TCP/IP port number for the target server.  You set the port for an HTTP request by assigning a value to <var>Port</var>, and you fetch its value by referencing it without any parameters.  If left unset, <var>Port</var> defaults to 80 (the standard HTTP port).


This settable property identifies the TCP/IP port number for the target server.
You set the port for an HTTP request by assigning a value to Port,
and you fetch its value by referencing it without any parameters.
If left unset, Port defaults to 80 (the standard HTTP port).
==Syntax==
==Syntax==
{{Template:HttpRequest:Port syntax}}
{{Template:HttpRequest:Port syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%httpreq</th>
<tr><th>%currentNumber</th>
<td>A previously defined and instantiated <var>HttpRequest</var> object.
<td>A numeric variable for the assignment of the current value of <var>Port</var>.</td></tr>
</td></tr>
<tr><th>httpRequest</th>
<tr><th>portno</th>
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr>
<td>A numeric expression identifying the port to which the request is sent. If the value is not an integer from 1 through 32767, the request is cancelled.
<tr><th>newNumber</th>
</td></tr>
<td>A numeric expression identifying the port to which the request is sent. If the value is not an integer from 1 through 32767, the request is cancelled.</td></tr>
<tr><th>%curr</th>
</table>
<td>A numeric variable for the assignment of the current value of Port.


</td></tr></table>
==See also==
==See also==
{{Template:HttpRequest:Port footer}}
{{Template:HttpRequest:Port footer}}

Latest revision as of 00:59, 19 June 2011

Target server port number (HttpRequest class)

The Port settable property identifies the TCP/IP port number for the target server. You set the port for an HTTP request by assigning a value to Port, and you fetch its value by referencing it without any parameters. If left unset, Port defaults to 80 (the standard HTTP port).

Syntax

%currentNumber = httpRequest:Port httpRequest:Port = newNumber

Syntax terms

%currentNumber A numeric variable for the assignment of the current value of Port.
httpRequest A previously defined and instantiated HttpRequest object.
newNumber A numeric expression identifying the port to which the request is sent. If the value is not an integer from 1 through 32767, the request is cancelled.

See also