Forum Discussion
johns
Employee
Mar 02, 2006iRule recognize blank space in URI?
Hi, I need to detect blank space in URI and either remove it or rewrite it:
www.mysite.com/some content/showme.html
to
www.mysite.com/some%20content/showme.html
...
johns
Employee
Mar 24, 2006ok, I am back, strange problem.
Test request I am sending:
[root@bigip1:Active] config telnet 10.10.50.203 80 Trying 10.10.50.203...
Connected to 10.10.50.203.
Escape character is '^]'.
GET /vMoD/vMoDGenres?title=R and B HTTP/1.0 ^]
telnet> q
Connection closed.
Seeing in the ltm log:
Mar 24 15:13:31 tmm tmm[824]: Rule vmod_search : URI was matched. Result: /vMoD/vMoDGenres?title=R and B Mar 24 15:13:31 tmm tmm[824]: Rule vmod_search : It worked! /vMoD/vMoDGenres?title=R%20and%20B
But the tcpdump shows:
15:13:31.821046 10.10.50.202.38458 > 10.10.50.236.http: P [tcp sum ok] 1:58(57) ack 1 win 4380 (DF) (ttl 255, id 50573, len 109)
0x0000 4500 006d c58d 4000 ff06 3c33 0a0a 32ca E..m..@...<3..2.
0x0010 0a0a 32ec 963a 0050 8280 d372 c314 39d8 ..2..:.P...r..9.
0x0020 8018 111c 811f 0000 0101 080a 4e3a 2f0e ............N:/.
0x0030 5e35 f30e 4745 5420 2f76 4d6f 442f 764d ^5..GET./vMoD/vM
0x0040 6f44 4765 6e72 6573 3f74 6974 6c65 3d52 oDGenres?title=R
0x0050 2532 3061 6e64 2532 3042 2061 6e64 2042 %20and%20B.and.B
0x0060 2048 5454 502f 312e 300d 0a0d 0a .HTTP/1.0....
You can see that BIG-IP is putting "and B" and the end of the URI.
I just can't figure out where it is padding that. I changed the logging and it shows the same if I comment out the "encoding" section. I am wondering if it is being padded after the rule is executed.
any help would be appreciated.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
