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 and the content-length can be overcome by using rechunking in the attached http profile. seemed great but...
1) there appears to be all sorts of crap added after each chunk according to wireshark (stuff like "10e", "d" and other tiny bits of raw hex)
2) the client app doesn't seem to like the chunking at all, possibly becasue of the above corrupting the xml, maybe just because it doesn't support it.
another option i saw was to change the content-length header manunally. this however causes the client software to hang until a timeout occurs, which is unacceptable.
essentially i really think i need the data to reach the client "correctly", without any hacks in the data (which i can't predict the contents of - so no idea how many replacements may occur). the only other option i can think of is to actually collect the full payload and do a regsub and ditch the stream profile, but this would presumably have a massive performance hit.
any takers?
Cheers
Chris
- John_Klemm_4418
Nimbostratus
I may be able to help you out. I had some issues with sharepoint and trying to stream. show me your stream profile as it is now. Also, make sure that you have streaming enabled under you vip. - Chris_Phillips
Nimbostratus
the streaming in itself is working fine, it's the fact that it changes the size of the payload i am having issues with. - Deb_Allen_18Historic F5 AccountHi Chris --
- Chris_Phillips
Nimbostratus
Thanks for the replies, i've since got the HTTP_RESPONSE_DATA event firing after the HTTP::collect completes and the data is being rewritten correctly. - hoolio
Cirrostratus
If I understand Deb's explanation of the process correctly, it's not a limitation in the rule functionality, but a limitation of the scenarios. - Chris_Phillips
Nimbostratus
no, i'd not class it as a iRule issue, more what the boxes we spent a lot of money on being able to do what we want them to... not that they ever said they could do that of course, but still it's frustrating as a customer. looks like we'll be using some other plan of attack here, like a real http proxy server.
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