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."
In reply to Re: Changing the content type
by psini
in thread Changing the content type
by carterniall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |