Solved

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

Posted on 1998-08-24
3
167 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

21 Experts available now in Live!

Get 1:1 Help Now