Complete.Org: Mailing Lists: Archives: linux-help: December 2000:
[linux-help] Re: Perl/CGI Question
Home

[linux-help] Re: Perl/CGI Question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: Perl/CGI Question
From: Jeremy King <soapboxalpha@xxxxxxxxx>
Date: Sun, 10 Dec 2000 20:33:15 -0800 (PST)
Reply-to: linux-help@xxxxxxxxx

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


[Prev in Thread] Current Thread [Next in Thread]