RE: [users@httpd] + in URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: [users@httpd] + 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:wrowe@xxxxxxxxxxxxx]
Sent: Sunday, November 20, 2005 12:11 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] + 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: users-unsubscribe@xxxxxxxxxxxxxxxx

   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


--------------------------------------------------------
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.
-----------------------------------------------------------------
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux