Forum Discussion
Robert_47833
Jun 15, 2011Altostratus
what is the difference of HTTP::header replace and HTTP::redirect
Hi,can someone help me in these
1:what is the difference of HTTP::header replace and HTTP::redirect
2:how to replace one pattern in the HTTTP::header in the first occurrence?
3:Can i U...
Colin_Walker_12
Jun 15, 2011Historic F5 Account
1. Replacing a header does just that, it replaces any header you specify. You could replace the host header or a custom header, or the Location header in a response, etc. The HTTP::redirect command issues a redirect to the client, causing them to initiate a new connection to the specified host & URI.
2. You want to replace one entire header, or a specific pattern within that header? Either way you'd be using HTTP::replace, but the logic surrounding it would be different depending on what you want to do.
3. Yes, HTTP::uri will get the information set in the URI if you don't specify any arguments, or set a new URI if you specify a value.
Colin
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