URL (HttpResponse function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (1 revision) |
(No difference)
|
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