Forum Discussion
Lars_Terje_Vaal
Nov 01, 2007Nimbostratus
Interesting, but we do not have the Web Accelerator license.
Do you pchang or anyone else have an example on how to build/recreate the request from the start inside iRules?
One thing is to create the header values and the uri which is easy to change with HTTP::uri and HTTP::header, but how to specify to use GET or POST?
Another thing.
If I receive a POST and wants to resend it with HTTP::retry. How can that be done?
This code
when HTTP_REQUEST {
set orginal_request [HTTP::request]
}
when HTTP_RESPOND {
if {some condition} {
HTTP::retry $orginal_request
}
}
Will only resend the request and not the POST data. If I do a collect, I will receive the POST data, but how can the payload be resent?