[fpc-pascal] fcl-web: retrieve URI given TFPWebModule and TFPWebAction instances

ABorka fpc-devel at aborka.com
Fri May 1 17:59:56 CEST 2015


ARequest.URI ?


There are other properties that can be useful:
ARequest.URL
ARequest.Location
ARequest.PathInfo
ARequest.PathTranslated
ARequest.ScriptName
ARequest.Query


On 5/1/2015 07:29, leledumbo wrote:
> Is there any easy way to retrieve URI given TFPWebModule and TFPWebAction
> instances?
>
> for instance:
> ...
> RegisterHTTPModule('m',TAModule);
> ...
> from inside an action's request handler:
> procedure Tm.XXXRequest(Sender: TObject; ARequest: TRequest;
>    AResponse: TResponse; var Handled: Boolean);
> begin
>    AResponse.Content := GetURI(Self,Actions.CurrentAction); // will be
> '/m/xxx'
> end;
>
>
>
> --
> View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fcl-web-retrieve-URI-given-TFPWebModule-and-TFPWebAction-instances-tp5721650.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
>




More information about the fpc-pascal mailing list