[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] MIME types



Adam Backstrom skrev/wrote:
>I'm using MacPerl 5.2.0r4 with Quid Pro Quo 2.1.2. It seems like the 
>content-type is set to text/html automatically. Is there any way I 
>can change the MIME type to something like image/gif? Is this done 
>in the script or in Quid Pro Quo? Doing it in the script seems to 
>just output that to the page..

Most cgi's begin with print "Content-Type: text/html\015\012\015\012";
The double cr lf is very important. And you can set it to anything, 
like image/gif for gifs.

It could be a server matter but try this first.
Christian

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org