Jump to content

Archived

This topic is now archived and is closed to further replies.

Irate

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

Share this post


Link to post
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:

 

#!/bin/perl

print "Content-type: text/html\r\n\r\n";
print '<html><head><title>Blah</title></head><body>Hi!</body></html>';

Share this post


Link to post
Share on other sites

I'll give it a try, didn't include any of that in my lecture about Perl, so, eh.

 

Still going to try it out, thanks a bunch.

Share this post


Link to post
Share on other sites

×
×
  • 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.