in reply to Changing the content type
Not sure if this is what you are looking for, but I use:
print $q->header(-type=>'text/xml'); print $q->header(-attachment=>'filename.xml');
where $q is a CGI object, to make the browser see a file filename.xml of type text/xml when opening my cgi script.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing the content type
by Fletch (Bishop) on Jul 15, 2008 at 20:10 UTC | |
by psini (Deacon) on Jul 15, 2008 at 20:24 UTC | |
by friedo (Prior) on Jul 15, 2008 at 20:32 UTC |