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 USE HTTP::uri in case I want to replace uri?
- Colin_Walker_12Historic F5 Account1. 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.
- Robert_47833AltostratusHI,
- hooleylistCirrostratusHi Jucao,
GET / HTTP/1.1 User-Agent: curl/7.20.1 (i686-pc-cygwin) libcurl/7.20.1 OpenSSL/0.9.8r zlib/1.2.5 libidn/1.18 libssh2/1.2.5 Host: www.google.com My-Custom-Header: aaa-bbb Accept: */*
GET / HTTP/1.1 User-Agent: curl/7.20.1 (i686-pc-cygwin) libcurl/7.20.1 OpenSSL/0.9.8r zlib/1.2.5 libidn/1.18 libssh2/1.2.5 Host: www.google.com My-Custom-Header: bbb-bbb Accept: */*
- Robert_47833AltostratusGET / HTTP/1.1
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