in reply to Re^4: Perl CGI to download files via web browser
in thread Perl CGI to download files via web browser
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".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl CGI to download files via web browser
by tanuj (Novice) on Mar 11, 2013 at 15:43 UTC |