Re: mod_rewrite : Can a space in a URL be preserved ?

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

 



On Tue, Oct 6, 2009 at 3:25 PM,  <rank1seeker@xxxxxxxxx> wrote:
> Maybe if Daniel would edit Apache's source... :)))
> Then once his "custom" Apache server is up and running, should notify us
> about it's IP.
> So we could have a fun with it ;)
>
>
> ----- Original Message -----
> From: Dick Davies <rasputnik@xxxxxxxxxxxxxxxxx>
> To: users@xxxxxxxxxxxxxxxx
> Date: Tue, 6 Oct 2009 16:05:36 +0100
> Subject: Re:  mod_rewrite : Can a space in a URL be preserved ?
>
>> Spaces aren't valid characters in urls, period. As you say, it URL
>> encodes to %20,
>> and I can't imagine any bits of apache (or any other server)
>> are going to send a space instead, because that breaks the HTTP spec.
>>
>> On Tue, Oct 6, 2009 at 3:59 PM, ABAPGUY <abapguy@xxxxxxxxx> wrote:
>> >
>> > Hi Apache experts,
>> > I am using Apache 2.0.59 as a Reverse Proxy using mod_rewrite and
> mod_proxy .
>> > I have a downstream J2EE server that is creating URLs with a space in
> them . How can I use mod_rewrite (which sees %20) to write the space
> ..instead of %20 ?
>> >
>> > Regards
>> > Daniel
>
> ---------------------------------------------------------------------
> 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
>
>

Heh.  Daniel, if the %20 really bugs you, how do you feel about the +
sign?  I don't think it's part of the HTTP spec per-se but it has been
one of the W3C's recommendations:
http://www.w3.org/Addressing/URL/4_URI_Recommentations.html#z5
It may not look as nice to you as a clear space but every webserver
I've ever dealt with respects the recommendation.

---------------------------------------------------------------------
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



[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