Version notice:
HTTP_RESPONSE_DATA¶
Description¶
An iRule event triggered when an
HTTP::collect command has collected the
specified amount of response data. Also triggered if the server closes
the connection before the HTTP::collect
command finishes processing.
Examples¶
when HTTP_RESPONSE_DATA {
regsub "oursite" [HTTP::payload] "oursitedev" fixeddata
log "Replacing payload with fixed data."
HTTP::payload replace 0 $clen $fixeddata
HTTP::release
}
Related Information¶
Available Commands:
- CATEGORY::filetype - checks for the mime type and mime subtype of an HTTP request payload
- clone - Causes the system to clone traffic to the specified pool or pool member regardless of monitor status.
- forward - Sets the connection to forward IP packets.
- HTTP::close - Closes the HTTP connection.
- HTTP::collect - Collects an amount of HTTP body data that you specify.
- HTTP::cookie - Queries for or manipulates cookies in HTTP requests and responses.
- HTTP::fallback - Specifies or overrides a fallback host specified in the HTTP profile.
- HTTP::header - Queries or modifies HTTP headers.
- HTTP::host - Returns the value of the HTTP Host header
- HTTP::is_keepalive - Returns a true value if this is a Keep-Alive connection.
- HTTP::is_redirect - Returns a true value if the response is a redirect.
- HTTP::password - Returns the password part of HTTP basic authentication.
- HTTP::payload - Queries for or manipulates HTTP payload information.
- HTTP::redirect - Redirects an HTTP request or response to the specified URL.
- HTTP::request_num - Returns the number of HTTP requests that a client made on the connection.
- HTTP::respond - Generates a response to the client as if it came from the server.
- HTTP::retry - Resends a request to a server.
- HTTP::status - Returns the response status code.
- HTTP::username - Returns the username part of HTTP basic authentication.
- HTTP::version - Returns or sets the HTTP version of the request or response.
- imid - Returns an i-mode identifier string.
- IP::idle_timeout - Returns or sets the idle timeout value.
- IP::local_addr - Returns the IP address of the virtual server the client is connected to or the self-ip LTM is connected from.
- ip_ttl - Returns the TTL of the latest IP packet received.
- lasthop - Sets the lasthop of an IP connection.
- listen - Sets up a related ephemeral listener to allow an incoming related connection to be established.
- nexthop - Sets the nexthop of an IP connection.
- node - Sends the packet directly to the identified server node.
- peer - Causes the specified iRule commands to be evaluated under the peer’s (opposite) context.
- persist - Causes the system to use the named persistence type to persist the connection.
- session - Utilizes the persistence table to store arbitrary information based on the same keys as persistence.
- SSL::cert - Returns X509 SSL certificate data.
- URI::query - Returns the query string portion of the given URI or the value of a query string parameter.
Warning
The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.
Sample Code:
- Convert 404s to Blank 200s - An iRule to convert an HTTP 404 response to a blank 200 response. HTTP 404…
- Credit Card Scrubber - This iRule illustrates how to scrub out Credit Card Numbers from HTTP traffic.
- HTML Comment Scrubber - This iRule will remove all HTML comments and replace them with white space.
- HTTP method conversion - This is one way that allows you to convert HTTP method from GET to POST or …
- HTTP Payload Collection - iRule demonstrating the basic approach for collection and manipulation of HTTP payload data.
- HTTP Session Watcher - An iRule that provides visibility into HTTP sessions flowing through the BIG-IP
- Microsoft Branch Cache Hash Offload - Hash Offload for Microsoft BranchCache
- Open SSO Authentication - A simple “Policy Agent” iRule that ensures that all incoming HTTP requests …
- Phishing Prevention - This iRule helps to cut down on Phishing and scraping attempts that might otherwise plague your network.
- Replace HTTP refresh with HTTP Redirect - Intercepts pages with HTTP REFRESH and re-writes as a proper 302 redirect
- Rewriting Single Part HTTP Responses As Multipart - Transform a single part HTTP response into a multi-part response
- SSL Termination - Finds and replaces a link or specific text with another link or text. can be used for Sharepoint Portal SSL Termination
- Introduced: BIGIP-9.0.0
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.