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 10, 2006I am also trying to see if I can use HTTP::collect to access HTTP::request or HTTP::payload, but HTTP::request generates "undefined procedure" and the payload comes up empty..... oh, and HTTP::decode is not supported?
when HTTP_REQUEST {
HTTP::collect
set my_request [HTTP::request]
log local0. "request is $my_request"
set my_data [HTTP::payload]
log local0. "my data is $my_data"
}
when HTTP_REQUEST_DATA {
if { [regexp "/vMoD.+HTTP" [HTTP::payload] match]} {
log local0. "match found $match"
set uri [getfield $match " HTTP" 1]
set my_uri [HTTP::decode $uri]
log local0. "My uri is $uri"
} else {
log local0. "No Match"
}
}
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
