Forum Discussion
Sean_Lagerholm_
Nimbostratus
Jun 07, 2006Simple http redirect???
Help, I'm having difficulty with fulfilling a requirement :
The customer wants to type in some url and then gets redirected.
The customer doesn't want to see the redirect in their brow...
Deb_Allen_18
Jun 14, 2006Historic F5 Account
Ok, I did a bit more reading & see that at least I need to move some of the response logic into an HTTP_RESPONSE_DATA event:
when HTTP_RESPONSE {
if { 1 != $bypass }{
set length [HTTP::header Content-Length]
HTTP::collect $length
}
}
when HTTP_RESPONSE_DATA {
if { 1 != $bypass }{
regsub -all $host_serverside$uri_prepend [HTTP::payload] $host_clientside newdata
HTTP::payload replace 0 $length $newdata
unset newdata
}
}Thanks for the feedback, unRuleY, you've saved us some troubleshooting time, I'm sure.
So would HTTP::payload be a valid command in HTTP_RESPONSE event, since HTTP_RESPONSE is triggered before any payload is seen? (Syntax error might have clued me in to that one...)
thanks
/deb
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
