I don't know why INDEX_URL
returns a blank string. Obviously, it was deliberate, though.
If you look at the IdHTTPWebBrokerBridge.pas
code more carefully, you will see that INDEX_URL
used to return FRequestInfo.Document
, which is the same value that INDEX_PathInfo
and INDEX_PathTranslated
both return. So you could try using a combination of the TWebRequest.Host
, TWebRequest.ServerPort
, TWebRequest.Path...
, and TWebRequest.Query
properties to recreate the URL you are looking for (minus the protocol, which you will just have to hard-code).
Also, XE+ has a TWebRequest.RawPathInfo
property which TIdHTTPAppRequest
implements to return Indy's TIdHTTPRequestInfo.URI
property value, so you should look at that as well.