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 <silviop...@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
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal