|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Query String Problem in IIS 6.0 when only the name is specified from a name/value pai
I am testing a perl script IIS 6.0 that ran fine in IIS 5.0 and am having a problem. When I specify a query string with only one name with out a value IIS returns an error. An example of a URL that produces this error is as follows:
http://www.domain.com/cgi-bin/test.pl?admin However, this will work fine if I use any of the following: http://www.domain.com/cgi-bin/test.pl?admin= http://www.domain.com/cgi-bin/test.pl?admin=1 http://www.domain.com/cgi-bin/test.pl?admin=1&load=2 etc... I have not been able to find a setting in IIS 6.0 that is limiting this. |
|
#2
|
|||
|
|||
|
It looks to me like your code is the problem, not IIS. Of course, had you posted the error message maybe that interpretation will change.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#3
|
|||
|
|||
|
Sorry, the error is a simple:
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The code is definately not the problem as it is extremely simplistic in nature: print "Content-type: text/plain\n\n"; if ($ENV{'QUERY_STRING'} eq "admin") { print "ok"; } You can even try it, just save this code as test.pl and then load it from the browser with http://www.domain.com/path/test.pl?admin You will notice that it prints out "ok" instead of nothing if you change the following line of code to: if ($ENV{'QUERY_STRING'} eq "admin=") { and change and url to : http://www.domain.com/path/test.pl?admin= |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Query String Problem in IIS 6.0 when only the name is specified from a name/value pai |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|