Solved

IIS4 passing a value that contains a whitespace to a perl CGI

Posted on 1998-08-24
3
161 Views
Last Modified: 2013-12-25
My perl CGIs worked fine with other web servers (Sambar, Xitami), but now I need them to work on IIS4.
The problem is when I'm trying to pass a value that contains a whitespace to my CGI. IIS just won't do that.

My CGI has a line like this:
$var = param('Name');
And I'm calling it like this:
MyCGI.pl?Name=Some Value
And it doesn't work (as I mentioned - it worked on other web servers).
It only workes like that:
MyCGI.pl?Name=SomeValue

Can somebody help me?  
0
Comment
Question by:gy7
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 30 total points
ID: 1828266
Replace the "white space" with "%20"  that is the "space" character... When the CGI program receives that line, it will (or should) know that is a space and recognize it as such.


0
 

Author Comment

by:gy7
ID: 1828267
Thanks, I tried it, but it does not work...
0
 

Author Comment

by:gy7
ID: 1828268
Well, after a long struggle, the correct solution turned out to be replacing the spaces with "+"s.
Anyway, thanks, you helped leading me there.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to count occurrences of each item in an array.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now