Host (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:HTTPRequest:Host subtitle}}
[[Category:HTTPRequest methods|Host property]]


This property identifies the Internet site name or IP address of the target
This property identifies the Internet site name or IP address of the target
Line 7: Line 6:
and you fetch its value by referencing it without any parameters.
and you fetch its value by referencing it without any parameters.
==Syntax==
==Syntax==
<p class="syntax">%httpreq:Host = hostname
{{Template:HTTPRequest:Host syntax}}
 
%curr = %httpreq:Host
</p>
 
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 18: Line 13:
</td></tr>
</td></tr>
<tr><th>hostname</th>
<tr><th>hostname</th>
<td>A string expression identifying the host by either full domain name or IP number. If left unset, it defaults to &ldquo;127.0.0.1&rdquo; (the Internet loopback address, which points to the host on which you are running).
<td>A string expression identifying the host by either full domain name or IP number. If left unset, it defaults to &amp;ldquo;127.0.0.1&amp;rdquo; (the Internet loopback address, which points to the host on which you are running).
</td></tr>
</td></tr>
<tr><th>%curr</th>
<tr><th>%curr</th>
Line 24: Line 19:


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

Revision as of 18:24, 15 June 2011

Template:HTTPRequest:Host subtitle

This 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

Template:HTTPRequest:Host syntax

Syntax terms

%httpreq An instantiated HTTPRequest object.
hostname A string expression identifying the host by either full domain name or IP number. If left unset, it defaults to &ldquo;127.0.0.1&rdquo; (the Internet loopback address, which points to the host on which you are running).
%curr The string or longstring variable for the assignment of the current value of Host.

See also

Template:HTTPRequest:Host footer