Forum Discussion
Chris_Phillips
Nimbostratus
Dec 06, 2006stream + content-length + chunking
Hi,
i have an xml application for which i'm using a stream profile to do hostname rewrites. as i've seen from deb's comments on a number of posts, the resulting variance in the payload size ...
Deb_Allen_18
Dec 07, 2006Historic F5 Account
Hi Chris --
Stream profile is low-overhead, performing replacements on the fly mid-stream, but requires chunking because the resulting payload size cannot be known when the Content-Length header would be sent.
Collecting the entire payload to perform replacement so size may be calculated is high overhead but allows explicit Content-Length declaration in header.
You can certainly use regsub to manipulate the entire payload, but as you suspected, it will carry a considerable performance hit. Search the forum & codeshare for "regsub" + "::payload" and you'll find a number of relevant examples.
/deb
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
