Re: [fpc-pascal] FCGI TRequest URI
On Fri, 6 Jun 2014, Dimitrios Chr. Ioannidis wrote: Hi, Στις 30/5/2014 1:09 μμ, ο/η Michael Van Canneyt έγραψε: Normally, it should be read from the REQUEST_URI environment variable. AFAIU, the URI property of the TRequest in the HTTPDefs unit, get's it's value from the command value when the fcgi app is started from web server . My problem is that, i'm using my fcgi app as an external cgi server, and in this case the URI property is empty string. Investigating the fcgi protocol i see the REQUEST_URI param and i can confirm that it exists in the FCGIParams list. Do i miss something ? No, it is a bug then. Please post a bug report. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCGI TRequest URI
Hi, Στις 30/5/2014 1:09 μμ, ο/η Michael Van Canneyt έγραψε: Normally, it should be read from the REQUEST_URI environment variable. AFAIU, the URI property of the TRequest in the HTTPDefs unit, get's it's value from the command value when the fcgi app is started from web server . My problem is that, i'm using my fcgi app as an external cgi server, and in this case the URI property is empty string. Investigating the fcgi protocol i see the REQUEST_URI param and i can confirm that it exists in the FCGIParams list. Do i miss something ? regards, -- Dimitrios Chr. Ioannidis smime.p7s Description: Κρυπτογραφημένη υπογραφή S/MIME ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCGI TRequest URI
On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, Στις 30/5/2014 12:57 μμ, ο/η Michael Van Canneyt έγραψε: On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. Any hints ? Nope. Seems like something that needs to be debugged :( your answer implies that the apache configuration is correct so there must be a problem in the cgi params assignement code. I'll take a look cause i want to use your wstmodule for web service toolkit, and you use the ARequest.URI as a parameter to construct the wsdl. Normally, it should be read from the REQUEST_URI environment variable. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCGI TRequest URI
Hi, Στις 30/5/2014 12:57 μμ, ο/η Michael Van Canneyt έγραψε: On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. Any hints ? Nope. Seems like something that needs to be debugged :( your answer implies that the apache configuration is correct so there must be a problem in the cgi params assignement code. I'll take a look cause i want to use your wstmodule for web service toolkit, and you use the ARequest.URI as a parameter to construct the wsdl. regards, -- Dimitrios Chr. Ioannidis smime.p7s Description: Κρυπτογραφημένη υπογραφή S/MIME ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCGI TRequest URI
On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, i'm trying to find out why the TRequest.URI property always return empty string in my setup. I have configured the web server apache like this SetHandler fcgid-script Order allow,deny Allow from all ScriptAlias /test /path/cgi/dir/fpc-fcgi-app.fcgi and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. Any hints ? Nope. Seems like something that needs to be debugged :( Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] FCGI TRequest URI
Hi, i'm trying to find out why the TRequest.URI property always return empty string in my setup. I have configured the web server apache like this SetHandler fcgid-script Order allow,deny Allow from all ScriptAlias /test /path/cgi/dir/fpc-fcgi-app.fcgi and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. Any hints ? I'm using fpc 2.6.5 ( latest fixes branch ) and apache from debian wheezy ( 2.2.2 i think ). regards, -- Dimitrios Chr. Ioannidis smime.p7s Description: Κρυπτογραφημένη υπογραφή S/MIME ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal