Problem 1: You're printing two Content-Type headers. Solution: lose the first one.
Problem 2: You're printing the content before the headers. Solution: swap them around.
Update:
Problem 3: The content type should probably be a full MIME type such as "text/plain".
In reply to Re^5: Perl CGI to download files via web browser
by hippo
in thread Perl CGI to download files via web browser
by tanuj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |