You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by sergen <se...@edunet.ru> on 2000/11/21 01:57:29 UTC

Apache::ASP (QueryString eats +)

     When sending text with "+" by "?" on url $Request->QueryString eats 
"+" (the text is absolutely the same but only this sign).
   Is it a bug or may be some else ?

   using: Mandrake 7.2
                Apache 1.3.14-2mdk
               apache-mod_perl 1.3.14_1.24-2mdk
               Apache-ASP 2.002mdk
               httpd-perl (proxied)

   If someone know what to do pls send a sign, thnks

   Serge


Re: Apache::ASP (QueryString eats +)

Posted by Joshua Chamas <jo...@chamas.com>.
sergen wrote:
> 
>      When sending text with "+" by "?" on url $Request->QueryString eats
> "+" (the text is absolutely the same but only this sign).
>    Is it a bug or may be some else ?
> 
>    using: Mandrake 7.2
>                 Apache 1.3.14-2mdk
>                apache-mod_perl 1.3.14_1.24-2mdk
>                Apache-ASP 2.002mdk
>                httpd-perl (proxied)
> 

Apache::ASP doesn't kill the + in a query string when parsing,
but mod_perl might?  Check out what you get in Apache->args
which is where Apache::ASP gets the query string from before
parsing.  You can do a <%= Apache->args %> in an ASP script.

Apache::ASP does escape + to ' ', space, and if you really want
to have a + in your URL, you will want to escape it with 
$Server->URLEncode($data), or $Server->URL($url, \%params)

--Joshua

_________________________________________________________________
Joshua Chamas			        Chamas Enterprises Inc.
NodeWorks >> free web link monitoring	Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Re: Apache::ASP (QueryString eats +)

Posted by Stephen Beitzel <sb...@envolved.com>.
On 21 Nov, sergen wrote:
> 
>      When sending text with "+" by "?" on url $Request->QueryString
>      eats
> "+" (the text is absolutely the same but only this sign).
>    Is it a bug or may be some else ?
> 
>    using: Mandrake 7.2
>                 Apache 1.3.14-2mdk
>                apache-mod_perl 1.3.14_1.24-2mdk
>                Apache-ASP 2.002mdk
>                httpd-perl (proxied)
> 
>    If someone know what to do pls send a sign, thnks

Note that URL encoding treats the symbol '+' as the URL encoded version
of the symbol ' ' (space, ASCII 32). The sequence of characters you need
to include in a query string in order to have your script interpret it
as the symbol '+' is '%43'.

Your problem report isn't exactly clear on what you mean by "eats", but
this may be your trouble.

HTH

Steve