<div dir="ltr">Oops, and my test is:<div><br></div><div><div>program DuallSMSFastCGITest;</div><div><br></div><div>{$mode objfpc}{$H+}</div><div><br></div><div>uses</div><div> HttpDefs, CustFCGI;</div><div><br></div><div>type</div><div><br></div><div> { TMyFCGIHandler }</div><div><br></div><div> TMyFCGIHandler = class(TFCGIHandler)</div><div> public</div><div> procedure HandleRequest(ARequest: TRequest; AResponse: TResponse); override;</div><div> end;</div><div><br></div><div> { TMyFCGIHandler }</div><div><br></div><div> procedure TMyFCGIHandler.HandleRequest(ARequest: TRequest; AResponse: TResponse);</div><div> begin</div><div> AResponse.Contents.Text := 'PathInfo: ' + ARequest.PathInfo;</div><div> end;</div><div><br></div><div>begin</div><div> with TMyFCGIHandler.Create(nil) do</div><div> try</div><div> Port := 8080;</div><div> Initialize;</div><div> Run;</div><div> finally</div><div> Free;</div><div> end;</div><div>end.</div></div><div><br></div><div>FPC 2.6.4 (and FPC from trunk too).</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 6:09 PM, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I've the same problem in Apache and nginx: TRequest.PathInfo always returns an empty string.</div><div><br></div><div>In Apache, I'm using the the mod_proxy_fcgi module already distributed in Apache 24. In nginx, I'm using this configuration:</div><div><br></div><div>location /dev/duallsms {</div><div><span style="white-space:pre-wrap"> </span>fastcgi_pass localhost:8080;</div><div>... other configurations ...</div><div><span style="white-space:pre-wrap"> </span>fastcgi_param PATH_INFO $fastcgi_path_info; # from nginx docs</div><div>}</div><div><br></div><div>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?!</div><div><br></div><div>Thank you!</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div>