Forum Discussion
Tim_Brown
Nimbostratus
Feb 17, 2006regsub failing
I used bl0ndie's search and replace code, the short version:
when HTTP_REQUEST {
HTTP::version 1.0
}
when HTTP_RESPONSE {
HTTP::collect 4294967295
}
w...
Feb 17, 2006
I just tested this out and it works for me. Here are the approaches I would take if I were you:
1. If all you are doing is replacing all occurances of ":8088" with an empty string, I'd use the Stream profile (if it's available to you).
2. Add some logging to your rule to determine if it's the regsub that's not working or the the HTTP::payload replace.
3. Change your code to do a regexp with the -indices option to return the indices of the matched sections. Then do individual HTTP::payload replaces for each of those indices. This avoids having to make a copy of the entire reponse payload. Search the forums for the indices option of regexp for more info.
-Joe
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
