Re: CGI using 4GL...
Posted in 1999
OK, my guess is that the output of your 4gl app starts with a blank line, or that the DISPLAY " " writes a blank and a line feed, which is *NOT* a valid header terminator... try changing it to \\DISPLAY "", and see what happens. At any rate, without having a look at the output of your 4gl app, there's no real way of saying what's wrong And btw, <PLUG>have a look at my little site (see below), and try my 4gl cgi library</PLUG> Ciao, Marco ______________________________________________________________________________ Marco Greco <marco@informix.com> Standard disclaimers apply! Informix faq http://www.iiug.org/techinfo/faq/informix.htm 4glworks http://www.ctonline.it/~marcog Informix on Linux http://www.ctonline.it/~marcog/ifmxlinux.htm Sandeep Singh wrote: > > Hello all, > > I am writing to ask if anybody here has done *any* > kind of CGI programming using 4GL. I am trying to > print a minimal "Hello" and I get a "malformed header" > error in the httpd logs. Here is the source: > > MAIN > DISPLAY "Content-type: text/html" > DISPLAY " " > DISPLAY "<h1>Hello Informix! </h1>" > END MAIN > > Any ideas on what might be wrong with the header? > I mean, it prints fine on the screen with the blank line > after the header and all. Thanks for your time... > > Sandeep