Forum Discussion
Nov 10, 2009
HTTP_Response is NOT responding
Hello All,
I have a set of code that does a 301 redirect and when responding, send back a URL to the client browser, but
doesn't. The log shows, but the respone URL does NOT get back to the client brower.
Request Method
when HTTP_REQUEST {
Special ondemand redirects
if { ([HTTP::uri] starts_with "/") } {
HTTP::respond 301 Location "http://xyz.com/"
log local0. "------301 redirect to xyz.-----"
return
}
}
when HTTP_RESPONSE {
HTTP::header replace Location "http://xxx.com/"
log local0. "respond to client xxx"
return
}
Can anyone help?
Thank you.
Regards,
TRX
- hoolio
Cirrostratus
Hi TRX, - Hello Aaron,
- hoolio
Cirrostratus
Can you explain a bit more on what you're trying to do and why? I'm not sure what you mean by masking a URL. - Hello Aaron,
- hoolio
Cirrostratus
Hi TRX,
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