| [linux-help] Re: Perl/CGI Question[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 
Sure.  Most cgi's just begin their output with a http
header that sets the mime type to text/html.  What
you'll want to do is print a http header that sets the
mime type to whatever the correct file type is: 
text/plain, application/excel, image/gif, etc.  For
more authoritative info (the above mime types should
be right, but I've been known to be wrong.  Once or
twice), check out this URL:
http://www.bjnet.edu.cn/tech/book/seucgi/ch10.htm
Jeremy
--- Curtis Hawthorne <cghawthorne@xxxxxxxxx> wrote:
> 
> Is it possible to make a CGI program using Perl that
> will feed the user's browser a file to download that
> is outside the normal html tree, or one that is
> generated on the fly?  If so, how would I do this?
> 
> Thanks!
> 
> Curtis H.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of
> Products.
> http://shopping.yahoo.com/
> 
> -- This is the linux-help@xxxxxxxxx list.  To
> unsubscribe,
> visit
>
http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
> 
> 
> 
> 
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
 
 
 |  |