Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

response collect error payload respond

I have a stupid application that is throwing errors but using an http status of 200 to do so.  I have written this irule snippet to replace the responses, 


when HTTP_RESPONSE {
if { [HTTP::status] == 200} {
HTTP::collect 50 }
}
when HTTP_RESPONSE_DATA {
if { [HTTP::payload] contains "reported an error" } {
HTTP::respond 404 }
}




and it works, but i'm curious about the HTTP::collect element.  I have set it to 1 and set it to a million, and my connection doesn't stall and it works and the response time is about the same.   what is a recommended collection amount?    what is the unit of measure for integers and this command?  i'm assuming bytes.



Thanks,
Shawn
0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
i think we should collect only amount of data we need i.e. reported an error message. the length is in octets (8-bit bytes).
0