in reply to Re^2: Malformed Header Error
in thread Malformed Header Error

No.DOCTYPE declarations are ADDITIONAL to the content-type. If you set content-type to "text/plain" for instance, the browser should ignore any markup in the file and just show it as plain text with funny tags in it.

You need a valid content-type header. Sometimes this is automatically provided by the webserver, but most of the time, it isn't.

Also, you might have uploaded your perl script as binary with different line-endings than the line-endings on the target machine, or your script is not executable by the webserver user (do chmod 755 filename).

Replies are listed 'Best First'.
Re^4: Malformed Header Error
by macPerl (Beadle) on Jul 19, 2004 at 17:59 UTC
    Ouch - this is embarrassing ...

    I have recently started using LeechFTP which has no options on what the line-endings are.

    To check the line-endings (also initially suggested by ccn) I did the upload via the command prompt and that has resolved the problem.

    Thank you all very much for your time and expertise.