Forum Discussion
andreoli_4699
Nimbostratus
Jan 13, 2010HTTP::payload replace with MORE data?
Hi all, I have the following code:
when HTTP_REQUEST priority 300 {
set original_payload [HTTP::payload]
set original_length [...
hoolio
Cirrostratus
Jan 13, 2010Actually... I'm not sure I follow the exact logic you're trying to implement. It's a little tricky to follow without the full rule. But to guess...
You're saving the original request headers using HTTP::request. Later, you're using HTTP::retry $original_request. This should trigger a new HTTP request with the request headers you saved from HTTP_REQUEST. What are you trying to do with the HTTP payload replace command? Are you trying to append that to the request headers and retry the request? If so, you could do this using:
append original_request $original_payload
HTTP::retry $original_request
You could also leave out the HTTP::payload replace and HTTP::header replace Content-Length commands before the HTTP::retry command.
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