Port (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
 
{{Template:HTTPRequest:Port subtitle}}
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
[[Category:HTTPRequest methods|Port property]]
<p>
<var>Port</var> is a member of the <var>[[HTTPRequest class|HTTPRequest]]</var> class.
</p>


This settable property identifies the TCP/IP port number for the target server.
This settable property identifies the TCP/IP port number for the target server.
Line 11: Line 6:
If left unset, Port defaults to 80 (the standard HTTP port).
If left unset, Port defaults to 80 (the standard HTTP port).
==Syntax==
==Syntax==
<p class="syntax">%httpreq:Port = portno
{{Template:HTTPRequest:Port syntax}}
 
%curr = %httpreq:Port
</p>
 
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 28: Line 19:


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

Revision as of 18:25, 15 June 2011

Template:HTTPRequest:Port subtitle

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

Template:HTTPRequest:Port syntax

Syntax terms

%httpreq A previously defined and instantiated HTTPRequest object.
portno 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.
%curr A numeric variable for the assignment of the current value of Port.

See also

Template:HTTPRequest:Port footer