Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-14 Thread Lorenzo Fiorini
On Wed, Apr 14, 2010 at 1:22 PM, Bruno Luciani wrote: > why testcgi not works ? I don't know. I didn't write it and I don't find it useful. IMHO HTML is so well documented and supported that hiding it behind a class is a waste of resources. best regards, Lorenzo

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-14 Thread Bruno Luciani
why testcgi not works ? Bruno 2010/4/14 Lorenzo Fiorini > On Tue, Apr 13, 2010 at 10:06 PM, Bruno Luciani > wrote: > > > Ok > > > > running > > > > http://www.lw3dtr.com.ar/cgi-bin/testlorenzo?testcgi > > > > > > I get > > > > Hello World! > > > > > > What that means ? > > That it works :) > >

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-14 Thread Lorenzo Fiorini
On Tue, Apr 13, 2010 at 10:06 PM, Bruno Luciani wrote: > Ok > > running > > http://www.lw3dtr.com.ar/cgi-bin/testlorenzo?testcgi > > > I get > > Hello World! > > > What that means ? That it works :) best regards, Lorenzo ___ Harbour mailing list (atta

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
Ok running http://www.lw3dtr.com.ar/cgi-bin/testlorenzo?testcgi I get Hello World! What that means ? Bruno 2010/4/13 Lorenzo Fiorini > On Tue, Apr 13, 2010 at 6:45 PM, Bruno Luciani > wrote: > > > [Tue Apr 13 14:01:05 2010] [error] [client xx] Error BASE/1081 > > Argument error:

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Lorenzo Fiorini
On Tue, Apr 13, 2010 at 6:45 PM, Bruno Luciani wrote: > [Tue Apr 13 14:01:05 2010] [error] [client xx] Error BASE/1081 > Argument error: + > [Tue Apr 13 14:01:05 2010] [error] [client xx] Called from MAIN(9) If you look at the cgi script it requires a parameter, so you should cal

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread marco bra
i test with this t1.prg FUNCTION Main() s_cNewLine := HB_OSNewLine() // s_cNewLine := chr(10) cContent := ; "Content-type: text/html"+ s_cNewLine + s_cNewLine + ; " Hello world " + ; "I am H

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
Another thing , in linux we need to compile in static mode because we don't have harbour installed on webserver machine Bruno 2010/4/13 Lorenzo Fiorini > On Tue, Apr 13, 2010 at 6:00 PM, Bruno Luciani > wrote: > > > Lorenzo , could you try testcgi sample from test folder in SVN ? > > testcgi.p

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
Error BASE/1081 Argument error: + (Quit) This is the response and the apache log [Tue Apr 13 14:01:05 2010] [error] [client xx] Error BASE/1081 Argument error: + [Tue Apr 13 14:01:05 2010] [error] [client xx] Called from MAIN(9) Bruno 2010/4/13 Lorenzo Fiorini > On Tue, Apr

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Lorenzo Fiorini
On Tue, Apr 13, 2010 at 6:00 PM, Bruno Luciani wrote: > Lorenzo , could you try testcgi sample from test folder in SVN ? testcgi.prg doesn't work. Try to compile the code below and put it in your cgi-bir dir. procedure main(...) local s_cNewLine := HB_OSNewLine() outstd( "CONTENT-TYPE: T

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
Lorenzo , could you try testcgi sample from test folder in SVN ? Bruno 2010/4/13 Lorenzo Fiorini > On Tue, Apr 13, 2010 at 3:38 PM, Bruno Luciani > wrote: > > > or others cgi programs. > > I use Apache, Harbour and CGI every day and I can assure it works even > better than other web solutions.

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Lorenzo Fiorini
On Tue, Apr 13, 2010 at 3:38 PM, Bruno Luciani wrote: > or others cgi programs. I use Apache, Harbour and CGI every day and I can assure it works even better than other web solutions. outstd() and -gtcgi flag are all you need to start. I can't say anything about THTML. best regards, Lorenzo _

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread francesco perillo
> [Tue Apr 13 14:46:33 2010] [error] [client 127.0.0.1] malformed header from > script. Bad header=\x1b[0m\x1b[1;1H\x1b[?25hHTTP/1.0 200 O: testcgi They seem to be console codes... like if not the correct GT is being used... You can use wget to get the page and store in a file: wget -O outputfil

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
The sample TestHtml works ok vailton the problem is with , testcgi sample or others cgi programs. Bruno 2010/4/13 Vailton Renato > Hi! > > See if this helps, look ShowResult() in this sample: > http://www.harbour-project.org/samples/testhtml.prg.html > > Regards, > Vailton Renato > > 2010/4/

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Bruno Luciani
Exactly this is the problem Bruno 2010/4/13 marco bra > Also here on apache2 on Ubuntu 9.10 32 bits > > More detailed error... seems there is something wrong in sent header: > > [Tue Apr 13 14:46:33 2010] [error] [client 127.0.0.1] malformed header from > script. Bad header=\x1b[0m\x1b[1;1H\x1b

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread marco bra
Also here on apache2 on Ubuntu 9.10 32 bits More detailed error... seems there is something wrong in sent header: [Tue Apr 13 14:46:33 2010] [error] [client 127.0.0.1] malformed header from script. Bad header=\x1b[0m\x1b[1;1H\x1b[?25hHTTP/1.0 200 O: testcgi Hth Best regard, Marco __

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-13 Thread Vailton Renato
Hi! See if this helps, look ShowResult() in this sample: http://www.harbour-project.org/samples/testhtml.prg.html Regards, Vailton Renato 2010/4/12 CarozoDeQuilmes : > My 2 cent: > > Starting the Apache2.2 service > The Apache2.2 service is running. > ] Apache/2.2.15 (Win32) configured -- resumi

Re: [Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-12 Thread CarozoDeQuilmes
My 2 cent: Starting the Apache2.2 service The Apache2.2 service is running. ] Apache/2.2.15 (Win32) configured -- resuming normal operations [Mon Apr 12 13:17:37 2010] [notice] Server built: Mar 4 2010 11:27:46 [Mon Apr 12 13:17:37 2010] [notice] Parent: Created child process 6532 [Mon Apr 12 13:

[Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-11 Thread Bruno Luciani
Nobody use CGI ? Can anybody try to test the CGI sample that comes with harbour in test folder and say to me if work ? Bruno 2010/4/11 Bruno Luciani > I am just trying to compile and test , sample testcgi.prg from test folder > > and another samples of cgi , and only obtain this error from we

[Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-11 Thread Bruno Luciani
The sample testhtml works ok , but testcgi not Bruno 2010/4/11 Bruno Luciani > I am just trying to compile and test , sample testcgi.prg from test folder > > and another samples of cgi , and only obtain this error from web server > > My server works ok , because I test it with an sample Xharbou

[Harbour] Re: Compiling CGI programs and RUN on Apache

2010-04-11 Thread Bruno Luciani
To compile i am using: hbmk2 testcgi -lgtcgi It is ok that Bruno 2010/4/11 Bruno Luciani > I am just trying to compile and test , sample testcgi.prg from test folder > > and another samples of cgi , and only obtain this error from web server > > My server works ok , because I test it with an