mod_rewrite : Can a space in a URL be preserved ?

mod_rewrite : Can a space in a URL be preserved ?

am 06.10.2009 16:59:26 von ABAPGUY

--0-1062062226-1254841166=:5555
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

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 o=
f %20 ?
=A0
Regards
Daniel
--0-1062062226-1254841166=:5555
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

top" style=3D"font: inherit;">
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 ..inst=
ead of %20 ?

 

Regards

Daniel

--0-1062062226-1254841166=:5555--

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

am 06.10.2009 17:05:36 von Dick Davies

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 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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

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

am 07.10.2009 00:25:39 von rank1seeker

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
To: users@httpd.apache.org
Date: Tue, 6 Oct 2009 16:05:36 +0100
Subject: Re: [users@httpd] 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 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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

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

am 07.10.2009 03:49:30 von Jonathan Zuckerman

On Tue, Oct 6, 2009 at 3:25 PM, 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
> To: users@httpd.apache.org
> Date: Tue, 6 Oct 2009 16:05:36 +0100
> Subject: Re: [users@httpd] mod_rewrite : Can a space in a URL be preserve=
d ?
>
>> 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 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 for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.or=
g
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org