ActiveState Powered by ActiveState

ActiveState Community


Setting Cookies with PERL running on IIS6

Posted by bobVDP on 2007-01-15 19:30

I must have changed a setting because now my statement "print qq|set-cookie: name=value|;" get displayed in the browser and doest not set the cookie. Has anybody seen this before? How can I stop IIS from automatically sending the HTTP headers?

Thanks
Bob

1DMF | Tue, 2007-01-23 03:07

I am having problems with the Content-Type header being outputed in the browser as text, I have edited the registry for EnableCGIHeader and set to ZERO , rebooted the server and it hasn't worked.

I have read a few post that are suggesting it is IIS6 , does anyone know how to stop this auto header being sent?

Thanks,
1DMF

1DMF | Tue, 2007-01-23 05:04

Ok, we have managed to get a workround, but only for perl.exe.

1. Change all .pl and .cgi to be run by perl.exe , perex does not work!

2. Ensure you have some mime extension types defined in the HTTP headers section of IIS.

It seems you don't need to have all the mime types you wish to use, but if this section is blank it issues text/html on everypage, if you add a couple of mime types, it seems to stop doing this.

As said before though, PEREX still produces unwanted mime headers, so the DLL Extentions for us is unusable.

Any other feedback appreciated.

Chana_R | Wed, 2007-05-23 16:00

I have encountered the same type problem. :o/

I just ported a series of working Perl scripts from old Windows 2000 box with IIS to new Win2003 IIS box. Content headers now display on screen (and in effect don't run).

Will try adding some Mime extensions...

Chana R.

-->