Forum Discussion
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