URL (HttpResponse function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:HttpResponse:URL subtitle}} | {{Template:HttpResponse:URL subtitle}} | ||
This | This method returns the actual URL from | ||
which a response was obtained. | which a response was obtained. | ||
In the case of server redirects, the URL returned by this method | In the case of server redirects, the URL returned by this method |
Revision as of 22:01, 17 June 2011
URL from which the response was obtained (HttpResponse class)
This 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