CGI Scripts

Joshua Macy amused at webamused.com
Mon Feb 7 07:17:36 EST 2000


Anders M Eriksson wrote:
> 
> On Sun, 06 Feb 2000 09:01:38 GMT, "Fredrik Lundh" <effbot at telia.com>
> wrote:
> 
> >Joshua Macy wrote:
> >>   Sorry, typo. That should have read:
> >>
> >>   print "Content-type: test/html\n\n"
> >
> >or rather,
> >
> >  print "Content-type: test/html\n"
> >
> >  print "Content-type: test/html"
> >  print
> >
> 
> Having alot of problems with just HTTP headers I have to ask this
> 
> In all the above code snippets the content-type is set to test/html.
> Please correct me if I'm wrong but shouldn't it be text/html?
> 
> // Anders


  D'oh!  Yes, content type should be text/html. My bad, and Fredrik
probably just cut and paste my text.


  Joshua



More information about the Python-list mailing list