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

Michael Van Canneyt michael at freepascal.org
Sat May 2 10:28:08 CEST 2015



On Fri, 1 May 2015, ABorka wrote:

> 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.

There has been an extensive reworking of the HTTPDefs structures recently.

There are 2 properties URI and URL which were stored in different fields.
I had not noticed this, since I do not use the URI field (the URL field showed up 
properly in my tests) I have corrected this, they share the same field now.
Rev 30760.

Michael.

PS. You can use the dumprequest routine in webutils to create a relatively complete dump in HTML of the HTTP environment.



More information about the fpc-pascal mailing list