Forum Discussion
Adrian_Turcu_10
Nimbostratus
Oct 30, 2007Help With HTTP_RESPONSE
Hello Gurus
Could someone help me with a quick rule to replace a header in the response back to the client, please?
My problem is like follows: we have a poxi app (not proxy) and t...
Adrian_Turcu_10
Nimbostratus
Oct 30, 2007wow, i'm not that good on tcl (not good at all i should say)
I might be wrong here, but from the tcl manual:
string range string first last
Returns a range of consecutive characters from string, starting with the character whose index is first and ending with the character whose index is last. An index of 0 refers to the first character of the string. An index of end (or any abbreviation of it) refers to the last character of the string. If first is less than zero then it is treated as if it were zero, and if last is greater than or equal to the length of the string then it is treated as if it were end. If first is greater than last then an empty string is returned.
So, that would return me in the rulr the actual bit I want to get rid off: http://127.0.0.1
If i read the manual right, the way to do it would be:
set rurl [string range $rlocation 16 end]
... I believe.
I complentely agree that needs to be tested. I'll try to crop something up tomorow (gmt time here) before I go live.
Thank again for your time and thoughts,
Adrian
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