Forum Discussion
Conor_Cunningha
Nimbostratus
Oct 22, 2008HTTP::retry
G'day,
I have the following code;
when HTTP_REQUEST {
if { [HTTP::method] == "POST" } {
log local0.alert "We have a POST"
set post 1
set request [HTTP:...
hoolio
Cirrostratus
Oct 22, 2008Hi Conor,
You could explicitly unset request to clear the memory (unset request).
Also, I don't think you need to use HTTP::release in HTTP_REQUEST_DATA:
HTTP::release wiki page
http://devcentral.f5.com/wiki/default.aspx/iRules/http__release
Releases the data collected via HTTP::collect. Unless a subsequent HTTP::collect command was issued, there is no need to use the HTTP::release command inside of the HTTP_REQUEST_DATA and HTTP_RESPONSE_DATA events, since (in these cases) the data is implicitly released.
And IE can send post requests with a content length header set to 0. There is a note on the HTTP::collect page warning against collecting without a value. Perhaps you would want to only collect if the the Content-Length value exists and is greater than 0?
Aaron
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
