Spaces in request URI when using proxy-subrequest

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

 



Hi.

I noticed that when using proxy-requests in RewriteRule, there is no
space encoding in URI.

Proxy request:

on server1 - 
# cat .htaccess
RewriteEngine On
RewriteRule (AAA.*) http://server2.com/phpinfo.php?q=$1 [L,P]

# telnet server1.com 80
GET /AAA%20AAA HTTP/1.1
HOST:server1.com

answer from server2:
QUERY_STRING    q=AAA 
REQUEST_URI     /phpinfo.php?q=AAA 
SCRIPT_NAME     /phpinfo.php

Usual requst:
i change rules in .htaccess on Server 1.
# cat .htaccess
RewriteEngine On
RewriteRule (AAA.*) /phpinfo.php?q=$1 [L]
Similar request but the answer is: 

QUERY_STRING    q=AAA AAA 
REQUEST_URI     /AAA%20AAA 
SCRIPT_NAME     /phpinfo.php

Is this a bug?

-- 
BRGDS. Alexey Vlasov.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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