Jump to content

IIS - Script Map working, but invalid HTTP headers returned?


Recommended Posts

So, yeah, another of these IIS topics (I would use XAMPP, but I managed to corrupt all of my data (don't ask how hahah)), this time, I added, as the title might suggest, a Script Map for all *.pl files to be handled by C:\Perl64\bin\perl.exe, seeing as I recently downloaded Perl and want to gather some experience working with it.

I primarily am interested in using it with the CGI, but I will also use Perl for CLI scripts (and that's working fine), although the CGI tells me that the Perl scripts throw no HTTP headers at me, causing 502 errors.

Anyone know if it's a failing Script Map or if there is an .exe file for the CGI I do not know about? :P

Link to comment
Share on other sites

Do you have your perl script generating proper headers as part of it's output? It's been a long time since I did anything with perl, and never with IIS but from what I remember it was necessary. Eg:



print "Content-type: text/html\r\n\r\n";
print '<html><head><title>Blah</title></head><body>Hi!</body></html>';
Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.