"malformed header" error (Apache 1.0/SCO) ?

"malformed header" error (Apache 1.0/SCO) ?

Post by David Byr » Wed, 17 Jan 1996 04:00:00



I've recently compiled Apache 1.0.0 under SCO 3.4.2. The system was previously
running 0.6.5, and existing CGI programs in C are not running under the new
service. The error_log contains the message:

[Tue Jan 16 13:41:56 1996] access to /w/cgi-bin/srch failed for dbyrne.aba
soft.co.uk, reason: malformed header from script

I've run the program from the command line, and the output is as expected:

Content: text/html

<HTML>
<HEAD><TITLE>title</TITLE></HEAD>
<BODY>

...

</BODY>
</HTML>

This all appears valid, and the same cgi progs compiled on a Sun running
Solaris 2.4 work fine with the 1.0.0 Server, so it looks like a SCO problem.
When the cgi program exits, it is as a result of a failed select(2) call,
which it doesn't do under 0.6.5. The number of SpareServers/MaxServers etc
does not affect the problem.

The cgi progs are all called from URLs, no SSI involved.
Has anyone seen this or have any ideas ?

Regards,

David
--
David Byrne, Abacus Software, London, UK              Tel: +44 (0)171 603 9877

Here's a koan: If you have ice-cream I will give you some. If you have none,
               I will take it away from you. (it's an ice-cream koan).

 
 
 

"malformed header" error (Apache 1.0/SCO) ?

Post by Patrick McMan » Fri, 19 Jan 1996 04:00:00




>[Tue Jan 16 13:41:56 1996] access to /w/cgi-bin/srch failed for dbyrne.aba
>soft.co.uk, reason: malformed header from script

>I've run the program from the command line, and the output is as expected:

>Content: text/html

Should be::>  Content-type: text/html (two crlfs)

Also you could be generating an error message because of difference in
env. variables or permissions when run from shell as opposed to as a
cgi. If the err comes out before the content line the malformed header
response is a common one. I'd suggest moving the MIME indicator to the
first thing in your ap for debugging purposes if it isn't already there.

-P

--
Patrick R. McManus      NYSERNet, Inc.          Information Services
http://pat.nyser.net/~mcmanus         Systems and Network Programming
Looking for a job? Over 100,000 positions on http://www.ajb.dni.us
* - You Kill Nostalgia, Xenophobic Fears. It's Now or Neverland. - *

 
 
 

1. Apache "malformed header" error

On trying to serve an html page returned from a cgi, apache complains:
[error][client 192.168.2.4] malformed header from script. Bad
header=<html>: /var/www/cgi-bin/my.cgi

If I run the cgi in the console and capture the output in a file, I can
serve up this document as a static html page. It works fine, except for
the printing of "Content-type: text/html" at the beginning of the
displayed document, as the cgi places this in here and Apache supplies
one for html documents.

Any help or ideas would be greatly appreciated.
Thanks,

Jeff Pizio
Programmer
PageMail, Inc.

2. kdemultimedia rc2 and make error

3. Apache/JServ 1.0 "cannot scan servlet headers"

4. scologin does not accept any logins. Need troubleshooting advice.....

5. GETSERVBYNAME()????????????????????"""""""""""""

6. Limiting processes from SWAPPING

7. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

8. ftp permissions

9. An addition to the "Failed CGI" and "Error Log for Apache" threads

10. Xlib: extension "RENDER" missing on display "ymserver.mydomain.de:1.0"

11. Error during install "Error reading header at xxxx"

12. "error 2 reading header: unknown error" - what is this?

13. Type "(", ")" and "{", "}" in X...