Re: malformed header from script. Bad header

2011-06-20 Thread Shlomi Fish
Hi Khabza, On Mon, 20 Jun 2011 09:57:17 +0200 Khabza Mkhize wrote: > I am receiving the following error on my error log > I thought it was caused by Meta Tag content. > The program was working fine for a long time its just few day I got > this error and now it seem is consistent. > [Sun Jun 19 2

Re: malformed header from script. Bad header

2011-06-20 Thread Rob Coops
On Mon, Jun 20, 2011 at 10:32 AM, Khabza Mkhize wrote: > I am not sure if this problem is cause by print "Content-type: text/html", > "\n\n"; > > The main problem I have commented print "Content-type: text/html", "\n\n"; > since is printing line from cookies i Used > > On Mon, Jun 20, 2011 at 9:57

Re: malformed header from script. Bad header

2011-06-20 Thread Khabza Mkhize
I am not sure if this problem is cause by print "Content-type: text/html", "\n\n"; The main problem I have commented print "Content-type: text/html", "\n\n"; since is printing line from cookies i Used On Mon, Jun 20, 2011 at 9:57 AM, Khabza Mkhize wrote: > I am receiving the following error on

RE: malformed header

2003-10-13 Thread Hanson, Rob
The short answer... Make sure this is the first print statement: print "Content-type: text/html\n\n"; The long answer... CGI scripts work by passing the web server a header part and a body part. The header part must contain AT LEAST the content type of the document (e.g. "text/plain", "text/ht