Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

778 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