Page (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (moved Page (HTTPRequest property) to Page (HttpRequest property)) |
m (moved Page (HTTPRequest property) to Page (HttpRequest property)) |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:HttpRequest:Page subtitle}} | ||
This settable property identifies a page path that is relative to the site root. | This settable property identifies a page path that is relative to the site root. | ||
Line 6: | 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== | ||
{{Template: | {{Template:HttpRequest:Page syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 30: | Line 30: | ||
</p> | </p> | ||
==See also== | ==See also== | ||
{{Template: | {{Template:HttpRequest:Page footer}} |
Revision as of 20:16, 16 June 2011
Relative page path (HttpRequest class)
This settable property identifies a page path that is relative to the site root.
Such a page, or document, is what follows the host and any port number in a URL.
You set the page for an HTTP request by assigning a value to Page,
and you fetch its value by referencing it without any parameters.
Syntax
%currentString = httpRequest:Page httpRequest:Page = newString
Syntax terms
%httpreq | An instantiated HTTPRequest object. |
---|---|
pageval | A string expression identifying the page to fetch. It does not include a host name. If left unset, it defaults to the slash character (/), the root page for the host website. |
%curr | A string or longstring variable for the assignment of the current value of Page. |
Example
As an example, the page is /links.html
in:
You set this page using;
%httpreq:Page = '/links.html'