Re: CGI script works in IIS5 but not in IIS6
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 11/03/04
- Next message: David Wang [Msft]: "Re: Application Pool Identity"
- Previous message: David Wang [Msft]: "Re: Application pool terminated unexpectedly"
- In reply to: CL: "CGI script works in IIS5 but not in IIS6"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Nov 2004 00:50:36 -0800
By design.
Setting the MIME Type has no effect because those values are used by the
Static File handler to set the Content type. Python is considered a
"dynamic script file" (since you set up a script mapping and web service
extension) which is responsible for sending its own "Content-Type" -- it has
the power to send whatever it wants, unaffected by Static File nor MIME
Type.
You seem to have solved your problem by adding "Content-Type: text/html\n"
to the Python script, which is what you are supposed to do. CGI spec has
always specified this requirement -- IIS6 is simply enforcing it while IIS5
was more lax (on many fronts).
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "CL" <CL@discussions.microsoft.com> wrote in message news:1212B9B8-B7CC-4EA5-8959-0B88CFA3C759@microsoft.com... I've installed python 2.2.2 under IIS6, configured all script mapping and web service extension. However the script which works under IIS5 does not work with IIS6 and required an additional line of print "Content-type: text/html\n" I'm not sure why?? But setting the MIME type is also not helping.. It's not recognizing the content as in IIS5. What else should be configured???
- Next message: David Wang [Msft]: "Re: Application Pool Identity"
- Previous message: David Wang [Msft]: "Re: Application pool terminated unexpectedly"
- In reply to: CL: "CGI script works in IIS5 but not in IIS6"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|