URL (HttpResponse function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (→Syntax terms) |
||
Line 1: | Line 1: | ||
{{Template:HttpResponse:URL subtitle}} | |||
<p> | <p> | ||
<var>Url</var> is a member of the <var>[[HttpResponse class|HttpResponse]]</var> class. | <var>Url</var> is a member of the <var>[[HttpResponse class|HttpResponse]]</var> class. | ||
Line 11: | Line 9: | ||
will '''not''' be the URL requested on the <var>HTTPRequest</var> object. | will '''not''' be the URL requested on the <var>HTTPRequest</var> object. | ||
==Syntax== | ==Syntax== | ||
{{Template:HttpResponse:URL syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 24: | Line 20: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
The URL method can inform an | The URL method can inform an | ||
Line 37: | Line 33: | ||
end if | end if | ||
</p> | </p> | ||
==See also== | |||
{{Template:HttpResponse:URL footer}} |
Revision as of 22:00, 17 June 2011
URL from which the response was obtained (HttpResponse class)
Url is a member of the HttpResponse class.
This non-settable method returns the actual URL from which a response was obtained. In the case of server redirects, the URL returned by this method will not be the URL requested on the HTTPRequest object.
Syntax
%string = httpResponse:URL
Syntax terms
%string | A string variable for the assignment of the Url property value of %httpresp. |
---|---|
%httpresp | A reference to an HTTPResponse object that was returned by a Get, Post, or Send method of an HTTPRequest object. |
Usage notes
The URL method can inform an application that a redirection happened and what the real location of the requested item was. For example:
%HTTPResponse = %HTTPRequest:Get('XMLCLIENT') if (%HTTPResponse:URL ne %HTTPRequest:URL) then print 'Hey Moe, we got redirected to ' and - %HTTPResponse:URL end if