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
Mar 01, 2010Hi there, me again ;-) I'm hitting another snag, and have been beating my head against the wall on it.
The above is working great, but it seems that in some cases, with a soap envelope that pushes the payload beyone a single packet, things aren't working as expected. Here's what I've found:
If the soap envelope begins in the first packet (packet length=1360) then extends into subsequent packets, everything is fine.
If the soap envelope begins in the second packet (first packet=815 bytes, soap envelope begins new packet), the "HTTP::payload length" command returns zero, which blows everything else up, because HTTP::payload returns a blank string (incidentally, "HTTP::header value Content-Length" returns the correct value [3529])
I haven't been able to figure out what makes the envelope split to the second packet, as I'm just using a traffic generator, so the exact same code is running when it works as when it doesn't. Therefore, it's hit or miss as to if/when I can create a failed or successful test.
It's very odd. I tried messing with chunking, both from the command level as well as the profile definition, but that didn't seem to help.
Any suggestions would be appreciated.
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