Host (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Template:HttpRequest:Host subtitle}} | {{Template:HttpRequest:Host subtitle}} | ||
The <var>Host</var> property identifies the Internet site name or IP address of the target web server for the HTTP request. You set the target host by assigning a value to <var>Host</var>, and you fetch its value by referencing it without any parameters. | |||
==Syntax== | ==Syntax== | ||
{{Template:HttpRequest:Host syntax}} | {{Template:HttpRequest:Host syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%currentString</th> | ||
<td> | <td>The string or <var>[[Longstrings|longstring]]</var> variable for the assignment of the current value of <var>Host</var>.</td></tr> | ||
<tr><th>httpRequest</th> | |||
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr> | |||
<tr><th>newString</th> | |||
<td>A string expression identifying the host by either full domain name or IP number. If left unset, it defaults to "127.0.0.1" (the Internet loopback address, which points to the host on which you are running). | |||
</td></tr> | </td></tr> | ||
</table> | |||
==See also== | ==See also== | ||
{{Template:HttpRequest:Host footer}} | {{Template:HttpRequest:Host footer}} |
Latest revision as of 20:01, 21 June 2011
Target web server (HttpRequest class)
The Host property identifies the Internet site name or IP address of the target web server for the HTTP request. You set the target host by assigning a value to Host, and you fetch its value by referencing it without any parameters.
Syntax
%currentString = httpRequest:Host httpRequest:Host = newString
Syntax terms
%currentString | The string or longstring variable for the assignment of the current value of Host. |
---|---|
httpRequest | A previously defined and instantiated HttpRequest object. |
newString | A string expression identifying the host by either full domain name or IP number. If left unset, it defaults to "127.0.0.1" (the Internet loopback address, which points to the host on which you are running). |