Title: RE: [EMAIL PROTECTED] + in URL

Hi Bill,
Thanks for your prompt answer.
The '&sub_cat=Art + Design' was entered as parameter in Microsoft Internet Browser 6. as a url address:

<http://server.name:port/V/?func=some_function&mode=category&category=Category Name&sub_cat=Art + Design&restricted=all>

As it seems, the browser does parse the spaces and sends:

<http://server.name:port/V/?func=some_function&mode=category&category=Category%20Name&sub_cat=Art%20+%20Design&restricted=all>>

But the application server receives:

<http://server.name:port/V/?func=some_function&mode=category&category=Category%20Name&sub_cat=Art%20%20%20Design&restricted=all>

Thanks,

Sincerely,
Jacob Eshed



-----Original Message-----
From: William A. Rowe, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 20, 2005 12:11 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] + in URL


Jacob Eshed wrote:
> Hi,
>
> A plus sign (+) in a url is converted to space (%20).

Yup, that's what the HTTP/1.0 (and 1.1) rules are for URI's.

> '&sub_cat=Art + Design' is converted to '&sub_cat=Art%20+%20Design' by
> the browser but the apache output received is '&sub_cat=Art%20%20%20Design'

That's a browser bug, the '+' should be escaped.  I'm guessing this isn't some form input (because the browser's are pretty smart that way) but rather this is an admin/author error.  You forgot to say WHERE '&sub_cat=Art + Design' was entered or interpreted by the browser, from.  If it's your href, img src, or some other page element, you goofed.

Bill

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED]

   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------
This message has been scanned for viruses and
dangerous content by Ex Libris Ltd, and is
believed to be clean.
--------------------------------------------------------


-----------------------------------------------------------------
This message has been scanned for viruses and
dangerous content by Ex Libris Ltd, and is
believed to be clean.
-----------------------------------------------------------------

Reply via email to