Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Error log message

Status
Not open for further replies.
Jan 17, 2002
106
US
Hello,

I am getting the following message in my Apache error log:

"malformed header from script. Bad header=Login name is"

The script that is running collects data and emails it to a recipient. This part is working and I am able to recieve the email including the data. However it returns an error after submitting the email......Does any one know how to fix this problem?

Thanks!

Jim
 
It could be that the output you are sending to the client its browser that has a bug in.
Do you have other headers than content-type:text/html ?
Which language are you using to do this?
 
The script is in Perl.....After I click the submit button on the form that is being sent I get an error message in the browser (ie 6.0) from the apache server. That is what propted me to check the apache logs and I discovered the before mention error message. The email is sent as text and I do recieve it. Not sure what is failing...any suggestions?

Here is the error that displays in IE 6.0 browser after clicking submit:

Internal server error

The server encounter an internal eror or misconfiguration and was unable to complete your request.

 
Obviously there are no headers sent back to Apache. You always have to output a content-type header when you are writing CGI applications, if not, this is what would happen. //Daniel
 
If you still have problems with the script you can post it in the Perl forum (or CGI)
 
I don't really do any programming....I got my orignal script from "Marks scripts"....I was able to find a version of "FormMail for NT".....i am running on a win2000 workstation....I have been modifying that script to make it work with what I have.....i have been successful up to this issue....I don't really know enough about Perl to fix a header problem....how do i check to see if something is being sent back to the apache server as suggested above? If I post the script somewhere how will that help me? Will someone be able to look at it and figure out whats wrong?
 
Hi,
I have exactly the same problem on my NT server. Did you find out what it was that was giving you trouble? I have the Formmail perl script too and I'm sure the headers aren't being written correctly but my knowledge of perl if very low.
Regards....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top