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

2015-05-01 Thread ABorka
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

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

2015-05-01 Thread leledumbo
> 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/hello

Re: [fpc-pascal] FreePascal and MySQL

2015-05-01 Thread Adriaan van Os
Terry A. Haimann wrote: I was kind of unimpressed with the performance of TSqlQuery compared to c. To build a table really fast, try Postgres COPY FROM STDIN / TO STDOUT BINARY with Postgres libpq

Re: [fpc-pascal] FreePascal and MySQL

2015-05-01 Thread Jonas Maebe
On 01/05/15 18:07, Terry A. Haimann wrote: > I wrote two programs that built the same identical table. A random set > of names with addresses. I found the user time of the program written > in c was 20% of that which was written in Free Pascal. How did you generate the random names? FPC uses the

[fpc-pascal] FreePascal and MySQL

2015-05-01 Thread Terry A. Haimann
I was kind of unimpressed with the performance of TSqlQuery compared to c. I wrote two programs that built the same identical table. A random set of names with addresses. I found the user time of the program written in c was 20% of that which was written in Free Pascal. Is there any chance of

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

2015-05-01 Thread ABorka
Forgot to mention that there is a global Request property which is the same. So Request.URI ... AB On 5/1/2015 08:59, ABorka wrote: ARequest.URI ? There are other properties that can be useful: ARequest.URL ARequest.Location ARequest.PathInfo ARequest.PathTranslated ARequest.ScriptName ARequ

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

2015-05-01 Thread ABorka
ARequest.URI ? There are other properties that can be useful: ARequest.URL ARequest.Location ARequest.PathInfo ARequest.PathTranslated ARequest.ScriptName ARequest.Query On 5/1/2015 07:29, leledumbo wrote: Is there any easy way to retrieve URI given TFPWebModule and TFPWebAction instances? f

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

2015-05-01 Thread leledumbo
Is there any easy way to retrieve URI given TFPWebModule and TFPWebAction instances? for instance: ... RegisterHTTPModule('m',TAModule); ... from inside an action's request handler: procedure Tm.XXXRequest(Sender: TObject; ARequest: TRequest; AResponse: TResponse; var Handled: Boolean); begin