Port (HttpRequest property)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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