I am having difficulty sending an XML file to the
browser using the Content-Disposition: attachment
header.

I am running mod_perl/1.99_13 and trying to use an
existing cgi script which returns data in various
forms.  One is an XML file.  The script is found in a
directory setup like this:

<Location /cgi-perl>
   SetHandler perl-script
   PerlResponseHandler ModPerl::PerlRun
   PerlOptions +ParseHeaders
   Options ExecCGI
</Location>

and the script prints headers like this:

    print "Content-type: text/plain\n";
    print "Content-Disposition: attachment;
filename=results.xml\n\n";

The resulting file reports a server error 500,
premature end of script headers and the
content-disposition line is displayed, so it looks
like it is not being treated as a header.

Any suggestions on how to fix this?

Thanks,
Micah Johnson



                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to