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 [...
andreoli_4699
Nimbostratus
Jan 14, 2010What happens is my original request comes in and contains a payload (a soap envelope). I take some cert info and use that to do a username/password lookup against another database (via the pool statement). That result comes back in the payload (which is why I save the original payload [soap envelope] at the beginning), I then put the username/password into the headers, put the original payload back in, and retry the original request.
The lookup server is now back online, but I'm seeing a different problem. The log lines show that the payload is now good, and the length is right, but it seems that the replace isn't actually happening. When I tcpdump the connection (all 80/tcp), the new payload is not there, all I see are headers. In fact, if I attempt to force the payload to something static (http::payload replace 0 1 "x") it's not there either.
Suggestions?
Thanks,
Tony
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