[fpc-pascal] Is Path_Info available in FastCGI working as proxy?
silvioprog
silvioprog at gmail.com
Thu Jan 29 22:13:24 CET 2015
Oops, and my test is:
program DuallSMSFastCGITest;
{$mode objfpc}{$H+}
uses
HttpDefs, CustFCGI;
type
{ TMyFCGIHandler }
TMyFCGIHandler = class(TFCGIHandler)
public
procedure HandleRequest(ARequest: TRequest; AResponse: TResponse);
override;
end;
{ TMyFCGIHandler }
procedure TMyFCGIHandler.HandleRequest(ARequest: TRequest; AResponse:
TResponse);
begin
AResponse.Contents.Text := 'PathInfo: ' + ARequest.PathInfo;
end;
begin
with TMyFCGIHandler.Create(nil) do
try
Port := 8080;
Initialize;
Run;
finally
Free;
end;
end.
FPC 2.6.4 (and FPC from trunk too).
On Thu, Jan 29, 2015 at 6:09 PM, silvioprog <silvioprog at gmail.com> wrote:
> Hello,
>
> I've the same problem in Apache and nginx: TRequest.PathInfo always
> returns an empty string.
>
> In Apache, I'm using the the mod_proxy_fcgi module already distributed in
> Apache 24. In nginx, I'm using this configuration:
>
> location /dev/duallsms {
> fastcgi_pass localhost:8080;
> ... other configurations ...
> fastcgi_param PATH_INFO $fastcgi_path_info; # from nginx docs
> }
>
> First I've tested it on Windows, but I've noticed that it fail in Linux
> too. So I ask: is PATH_INFO available in FastCGI (working as proxy)? If
> not, what I use instead it?!
>
> Thank you!
>
> --
> Silvio Clécio
> My public projects - github.com/silvioprog
>
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150129/625e4e23/attachment.html>
More information about the fpc-pascal
mailing list