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

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

Re: [fpc-pascal] fptemplate example wrong?

2015-04-18 Thread ABorka
The OnGetParam and OnReplaceTag are two totally different ways to handle templates. The former is the original version found in FPC packages, the latter is the newer, more Delphi-like - although enhanced - way to do templates. The two are mutually exclusive and controlled by the AllowTagParams

Re: [fpc-pascal] Freepascal templating engines with logical structures

2014-09-16 Thread ABorka
You do not need to use javascript. There are examples for fpTemplate on how to do this. See .../packages/fcl-base/texts/fptemplate.txt for details. Examples are in .../packages/fcl-web/examples/fptemplate/... All your logic (loop) can be in your fpc source code for grids. What you seem to want

Re: [fpc-pascal] The best approaching for templating

2011-11-09 Thread ABorka
On 11/9/2011 14:27, tcoq wrote: Dear Luciano. I would suggest using the StringReplace function (Sysutiles) in combination with a TStringList. Easy to do and quite powerful. You can also use a second string list to store the values and patterns to replace, using the Names and Values properties,

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread ABorka
On 10/31/2011 10:14, Felipe Monteiro de Carvalho wrote: There is no form and no form data here. I want to pass raw data via post. And yes, I checked that it is sent correctly. Then your Content-Type header is neither "MULTIPART/FORM-DATA" nor "APPLICATION/X-WWW-FORM-URLENCODED" when you use PO

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread ABorka
On 10/31/2011 08:56, Felipe Monteiro de Carvalho wrote: Ok, I figured part of it out. I can get past the exception if I use 2.5.1 And the action was necessary, which is really strange because it worked nicely without it when using GET But now my problem is that I cannot get my POST data. I trye

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread ABorka
On 10/19/2011 07:05, Leonardo M. Ramé wrote: > - Original Message - <...snip...> >>> I created a FastCGI based server that handles JSON requests from a >>> Win32/Linux GUI app, that uses a custom made ORM similar to tiOPF and it >>> works really fast, even on slow-long distance netw

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread ABorka
.. >The error that exists in the ticket is not displayed. Seemingly, start > of httpd seems to success. However, the process terminate immediately. > > Is there another possible cause? > > Takashi If you compile with the proper HTTPD directory (httpd22 in this case), it should work. No error

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread ABorka
On 5/26/2011 13:36, Takashi Ishikawa wrote: Hello, all I'm writing apache module with fpc. When I compile my program on fpc 2.4.4, Apache terminate immediately. But on fpc 2.2.4, Apache and my module will work fine. Code is compiled with no problem. Apache can load module. But the running has

Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-23 Thread ABorka
Hello, Does fpWeb have any method/function that escape and un-escape html and URI elements ? Thanks, Ido There are Function HTTPDecode(const AStr: String): String; Function HTTPEncode(const AStr: String): String; in unit httpdefs.pp of fcl-web. AB _

Re: [fpc-pascal] Re: setting variables with DWARF in gdb

2010-10-30 Thread ABorka
On 10/30/2010 04:07, Graeme Geldenhuys wrote: On 30 October 2010 11:26, Jonas Maebe wrote: Reverse execution is a new feature that was added to gdb 7.0, although you probably want to use 7.2 for the extra bug fixes. The supported targets are listed at http://www.gnu.org/software/gdb/news/rev

Re: [fpc-pascal] Apple development tools

2010-09-09 Thread ABorka
On 9/9/2010 06:45, Jonas Maebe wrote: On 09 Sep 2010, at 15:31, Mark Morgan Lloyd wrote: I've just had my attention drawn to this elsewhere, and thought it would be of general interest. "In particular, we are relaxing all restrictions on the development tools used to create iOS apps, as long

Re: [fpc-pascal] fcl-web webdata example(s) on Windows has some problems

2010-08-17 Thread ABorka
...snip... 4. The JSON html is working now, but the xml one doesn't list anything in the grid. This might be that I did something wrong, will check demo2 and try both there. c; demo2 - demo6 1. "The following package failed to load: lazwebdata" (there are a lazwebdata.pas and reglazwebdata.pp fi

Re: [fpc-pascal] fcl-web webdata example(s) on Windows has some problems

2010-08-16 Thread ABorka
...snip... c; demo2 - demo6 1. "The following package failed to load: lazwebdata" (there are a lazwebdata.pas and reglazwebdata.pp files in the demo directory, so that might be something to use somehow) No, this is the old package name before it was renamed to lazwebextra. I will check this.

Re: [fpc-pascal] fcl-web webdata example(s) on Windows has some problems

2010-08-15 Thread ABorka
WinXP 32, FPC and Lazarus latest SVN checkout. I was trying to play a little bit with the promising new fcl-web webdata features to see how JSON/EXTJS works with FPC/Lazarus and came up with the following problems in the first demo example ...fpcdir...\packages\fcl-web\examples\webdata\demo\ .

[fpc-pascal] fcl-web webdata example(s) on Windows has some problems

2010-08-15 Thread ABorka
Hi, WinXP 32, FPC and Lazarus latest SVN checkout. I was trying to play a little bit with the promising new fcl-web webdata features to see how JSON/EXTJS works with FPC/Lazarus and came up with the following problems in the first demo example ...fpcdir...\packages\fcl-web\examples\webdata\d

Re: [fpc-pascal] fpweb tutorial

2010-07-16 Thread ABorka
I've added some words on templates that points to the readme files and the example projects now coming with Lazarus demonstrating the usage of templates. AB On 7/16/2010 00:35, Michael Van Canneyt wrote: On Fri, 16 Jul 2010, Felipe Monteiro de Carvalho wrote: I added a small introduction

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread ABorka
/lazarus/components/fpweb/demo/fptemplate/*.* has examples of how to use templates and template tags. On 7/13/2010 07:47, Felipe Monteiro de Carvalho wrote: Hello, Thanks, with this blog I seam to be going somewhere and it worked ok with fpc 2.4.0 and the weblaz.lpk package. One thing still:

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread ABorka
On 5/24/2010 09:52, Leonardo M. Ramé wrote: -- On Mon, 5/24/10, ABorka wrote: From: ABorka Subject: Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits To: "FPC-Pascal users discussions" Date: Monday, May 24, 2010, 1:48 PM On 5/24/2010 09:02, Leonardo M. Ramé wrote: Aldo, I k

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread ABorka
On 5/24/2010 09:02, Leonardo M. Ramé wrote: Aldo, I know it has templates, the problem I'm facing now is in Windows Seven 64bits, It can't read environment/GET/POST vars, so the GetVar function doesn't return anything. That's why I had to look elsewere. Leonardo M. Ramé http://leonardorame.blo

Re: [fpc-pascal] CGI file upload

2010-05-24 Thread ABorka
On 5/23/2010 08:57, Vannus wrote: How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling writeln('filenamevar: '+application.requestvariables['file']+''); // works when get but post is

Re: [fpc-pascal] strtodate on linux

2010-05-20 Thread ABorka
I had a problem like this before. If memory serves right, I had to set all four of these for StrToDate to work under Linux after moving some code from Windows: LongTimeFormat := 'hh:mm:ss'; ShortDateFormat := '/MM/DD'; DateSeparator := '/'; TimeSeparator := ':'; AB On 5/2

Re: [fpc-pascal] linker apache linux

2009-10-08 Thread ABorka
This usually comes when you compiled your Apache module with the wrong version of httpdXX directory from fpc/packages/. There are 3 included in fpc: httpd13 httpd20 and httpd22 Delete the two that are not your Apache version and recompile your module (or in Lazarus -> Project -> Compiler Optio

Re: [fpc-pascal] INDY 10 for FPC

2009-09-03 Thread ABorka
indy10/branches/Tiburon but do not expect too much! it only works on windows as they are reinventing the wheel on iconv support so far it does not work at least on MACOSX -- Hinnack reply to message: date: 03.09.2009 01:19:39 from: "ABorka" to: "FPC-Pascal users discussions"

Re: [fpc-pascal] INDY 10 for FPC

2009-09-03 Thread ABorka
pc.ppu', needed by `fpc_units'. Stop. Jonas Maebe wrote: On 03 Sep 2009, at 01:19, ABorka wrote: There is a \Lib\indymaster-Makefile.fpc but it gives " make -f indymaster-Makefile.fpc all indymaster-Makefile.fpc:1: *** missing separator. Stop. " Normally, a Makefi

Re: [fpc-pascal] INDY 10 for FPC

2009-09-02 Thread ABorka
Well, if one checks out the latest Indy SVN sources from svn://svn.atozed.com/indy/indy10/trunk the latest revision is 3778 (last update was in April 2009) there is no way to compile it for FPC/Lazarus. The FPC related README file is the same as for the 2007 10.2.0.3 FPC only version and the s

[fpc-pascal] Microsoft to ban Memcpy() :)

2009-05-15 Thread ABorka
Funny... always these problems with C and bounds checkings http://www.theregister.co.uk/2009/05/15/microsoft_banishes_memcpy/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread ABorka
I think all those patches are now applied - with minor changes - by Joost in the latest SVN. Giovanni Premuda wrote: ABorka wrote: Not sure about this error, but make sure you are using the latest SVN source code for FPC because recently there were multiple bug fixes done in fcl-web I&#x

Re: [fpc-pascal] Apache Modules without LResources

2009-04-28 Thread ABorka
Not sure about this error, but make sure you are using the latest SVN source code for FPC because recently there were multiple bug fixes done in fcl-web Giovanni Premuda wrote: Joost van der Sluis wrote: Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni Premuda: Is it p

Re: [fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread ABorka
At the moment, it loads the whole content into a stream for processing line by line. It is possible to create a patch to not do processing (exception, error message, trigger an event handler, etc.) if the ContentLength exceeds a specified size. Leonardo M. Ramé wrote: Hi, I'm looking at ht

Re: [fpc-pascal] SQL show tables

2009-01-12 Thread ABorka
I think "execsql" never returns any records, you supposed to use "open" for queries returning results. Execsql is for insert, delete, update, etc. David B Copeland wrote: Hi, I am trying to pre-fill a TComboBox with the all the tables in a database, without sucess. I am running Suse 10.3, a