SunQuest
           IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old June 7th, 2005, 01:45 AM
easycgi1 easycgi1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 easycgi1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 42 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old June 7th, 2005, 03:26 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
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

Reply With Quote
  #3  
Old June 7th, 2005, 08:29 AM
easycgi1 easycgi1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 easycgi1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 42 sec
Reputation Power: 0
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=

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Query String Problem in IIS 6.0 when only the name is specified from a name/value pai


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway