URL (HttpResponse function)
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