Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Sorry for the title: long day.
The basic issue is that I'm having troubles getting non-html CGI-headers to work. In particular:
print $cgi->header('text/plain');
Gives me an HTTP 200 (ok!!!), while:
print $cgi->header('test/plain'), "\n";
seems to work just about normal. I'm missing something conceptual here, I guess, any thoughts?
On a possibly-related note, my other problem is that when I try to access this CGI page through an HTML form submit button it pops up a dialogue box asking if I want to view/download, rather than just inputting to the browser as it should for this MIME type. I suspect these are related issues.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI header doesn't like me
by bobn (Chaplain) on Sep 09, 2003 at 23:21 UTC | |
by Anonymous Monk on Sep 10, 2003 at 00:12 UTC | |
by Anonymous Monk on Sep 10, 2003 at 00:27 UTC | |
by bobn (Chaplain) on Sep 10, 2003 at 04:40 UTC | |
by Roger (Parson) on Sep 10, 2003 at 06:51 UTC | |
|
Re: CGI header doesn't like me
by ajdelore (Pilgrim) on Sep 09, 2003 at 23:32 UTC | |
|
CGI header behaves differently for forms vs. links
by Anonymous Monk on Sep 10, 2003 at 14:04 UTC | |
by Anonymous Monk on Sep 10, 2003 at 14:37 UTC |