Forum Discussion
Jim_Grundy_4363
Nimbostratus
Aug 15, 2009append to a URI string
I don't know TCL very well, but I have been asked to write an iRule for internet only traffic. The rule must append to the end of the URI for internet traffic only. Internal access should not have this appended.
Any help would be appreciated.
- The_Bhattman
Nimbostratus
Hi Jimwhen HTTP_REQUEST { if { !([IP::addr [IP::client_addr] equals 10.10.0.0/255.255.0.0]) } { HTTP::uri /appenduri[HTTP::uri] } }
when HTTP_REQUEST { if { !([IP::addr [IP::client_addr] equals 10.10.0.0/255.255.0.0]) and !(HTTP::uri "/appendeduri" } { HTTP::uri /appenduri[HTTP::uri] } }
- Jim_Grundy_4363
Nimbostratus
CB, - Jim_Grundy_4363
Nimbostratus
This sort of works, but not exactly. I think I need to redirect the browser to get it work with the variable. - The_Bhattman
Nimbostratus
What doesn't work exactly? - Jim_Grundy_4363
Nimbostratus
According to the server logs it is appending the &ra=0 to the end of the string, but the that is supposed to suppress attachments from Lotus Notes. It only seems to work if the &ra=0 comes from the users browser. If they manually add it to the end of the string it does suppress, if the iRule adds it doesn't. So I wanted to try a redirect with the append. I also don't see it appended in the logs either.
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