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

Re: [MacPerl] HTTP Headers (was "CGI line reader")



At 21.21 11/7/97, Richard Rathe wrote:
>I find it interesting that you included the HTTP header info:
>
>        Content-type:   text/html
>
>For some reason I thought this was being handled by the "glue". Is it
>necessary? (My guess is that it's not.) I suppose my CGI could return a GIF
>in which case I might have to force the browser to view it correctly with:
>
>        Content-type:   image/gif
>
>What HTTP header info does the glue supply? Is there any limit to the
>headers I can add? Thanks, RR

The glue does not supply any content-type, I don't think.  If it does, it shouldn't.  You have to add it.  You cannot have more than one content-type, unless you use non-parsed headers, but that is a whole nother thing.  So unless the glue is smart enough to add content-type of text/html if no content-type is given, you need to give one.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch