I am not sure about the Embedded Webserver as I have never used it, but
I remember vaguely about some kind of problem we have fixed regarding
pathinfo with Apache 2.4 and the mod_proxi_fcgi a few years ago.
There was a bug report, let me see if I can find it: ...
http://bugs.freepascal.org/view.php?id=23387
In it you can see that with Apache 2.4 you have had to do some tricks in
the conf file to even get the pathinfo passed from the web server (in
the bug report "Steps To Reproduce" section):
#No PATH_INFO with mod_proxy_fcgi unless this is set
SetEnvIf Request_URI . proxy-fcgi-pathinfo=1
See also the "Additional Information" section for detailed Apache doc on
the issue.
So, it is possible, that for the URI we can have the same kind of issue.
I am not using the URI parameter myself in my projects - might be
because it was never set - it seems the others were sufficient or the
URI can be rebuilt from the remaining ones.
Michael can probably shed some more light on this issue.
AB
On 5/1/2015 20:59, leledumbo wrote:
ARequest.URI ?
Forgot to mention that there is a global Request property which is the
same.
So Request.URI ...
It's empty in CGI/FastCGI/Embedded Webserver. Did I just find another bug?
This is the result of dumping [A]Request properties:
[CGI, URL = http://localhost/test.fpw/m/helloget]
ScriptName /test.fpw
PathInfo /m/helloget
URI
ReturnedPathInfo m
LocalPathPrefix ../../
CommandLine
Command
QueryString
HeaderLine
[FastCGI, URL = http://fpfcgi.local/m/helloget]
ScriptName fpfcgi.local
PathInfo /m/helloget
URI
ReturnedPathInfo m
LocalPathPrefix ../../
CommandLine
Command
QueryString
HeaderLine
[Embedded Webserver, URL = http://localhost:2015/m/helloget]
PathInfo m/helloget
URI
ReturnedPathInfo m
LocalPathPrefix ../
CommandLine
Command
QueryString
HeaderLine HTTP/1.1
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/fcl-web-retrieve-URI-given-TFPWebModule-and-TFPWebAction-instances-tp5721650p5721656.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal