Re: The case of the disappearing plus sign

2006-12-18 Thread Robert Landrum

Chris Schults wrote:

It appears that the + is getting stripped out at some point as the
script is returning results for water pollution instead of
water+pollution. Is it possible that Apache is the culprit or should
we be looking more closely at our script or rewrite rule?



The test would be to hit /cgi-bin/script.pl? with the water+pollution 
keyword.


The problem is most CGI variable processors are going to replace + with 
a space.  I doubt this is an issue with rewrite.  You might need to pass 
the URL encoded string instead of water+pollution...  That would be 
water%2Bpollution.


Rob


Re: The case of the disappearing plus sign

2006-12-18 Thread John ORourke

I wouldn't really call this a modperl question but regardless...

Chris Schults wrote:

It appears that the + is getting stripped out at some point as the
script is returning results for water pollution instead of
water+pollution. Is it possible that Apache is the culprit or should
we be looking more closely at our script or rewrite rule?
  
I'd suggest looking more closely at the HTTP specs... + represents a 
space in a URL so your program will be fed a space by CGI - probably 
nothing to do with the rewrite.



To sign up for Grist by email, the world's top environmental news served
up with a sense of humor, click here http://www.grist.org/signup/ or
send a blank email message to [EMAIL PROTECTED] 
  
To sign up for mod_perl, the world's top web applications platform 
served with tongue firmly in cheek, ...


John



RE: The case of the disappearing plus sign

2006-12-18 Thread Chris Schults
Thanks Rob, this might be it.

As we can't expect our users to know to use %2B instead of +, we'll
try replacing it in the rewrite.

Chris

-Original Message-
From: Robert Landrum [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 11:01 AM
To: Chris Schults
Cc: modperl@perl.apache.org
Subject: Re: The case of the disappearing plus sign

Chris Schults wrote:
 It appears that the + is getting stripped out at some point as the
 script is returning results for water pollution instead of
 water+pollution. Is it possible that Apache is the culprit or should
 we be looking more closely at our script or rewrite rule?
 

The test would be to hit /cgi-bin/script.pl? with the water+pollution 
keyword.

The problem is most CGI variable processors are going to replace + with 
a space.  I doubt this is an issue with rewrite.  You might need to pass

the URL encoded string instead of water+pollution...  That would be 
water%2Bpollution.

Rob


RE: The case of the disappearing plus sign

2006-12-18 Thread Chris Schults
 I wouldn't really call this a modperl question but regardless...

Sorry if this was off topic. I subscribed to this list a few months ago
for another issue and have seen a number of posts dealing with
mod_rewrite. I'll be mindful in the future.

Chris