I'm trying to figure out how to read the full URI from a request (Web.HTTPApp.TWebRequest
). There is a URL
property, however it returns empty, and I don't see any more properties which could give me this. How can I get the complete URI of the request? This is being used via Indy 10 TIdHTTPWebBrokerBridge
.
For example...
http://www.mydomain.com:18500/SomePath/SomeFile.html?n=v&a=b
I tried tracking this URL
property and found that in IdHTTPWebBrokerBridge.pas
this is being left blank, apparently deliberately...
function TIdHTTPAppRequest.GetStringVariable(Index: Integer): AnsiString;
...
case Index of
...
//INDEX_URL : Result := AnsiString(FRequestInfo.Document);
INDEX_URL : Result := AnsiString(''); // Root - consistent with ISAPI which return path to root