Forum Discussion
Rostislav_Zatol
Nimbostratus
Apr 02, 2010unchanking and collecting whole POST body
Hi,
I am going crazy trying to collect complete POST body sent in chunked format to the server.
HTTP::collect requires a number of bytes to collect, chunked http messages doese not have content-length header, so I dont see a possibility to collect whole body.
Chunked format has byte count for following body part. i.e.
-----
POST /xyz HTTP 1.1
header 1
header 2
Transfer-Encoding: chunked
28
herebodypartwith13characters
0
--------
the shows that 28 bytes of body follows.
I was trying to call [HTTP::payload length], it delivers 4, that means it should be 280d0a, but [HTTP::payload] itself delivers 0
I have tried to call [HTTP::collect [HTTP::payload]] doese not work also, also [HTTP::collect [HTTP::payload length]].
Maybe I am just stupid, but is there no standard parsing mechanism for HTTP 1.1 chunked POST requests?
BR
RZ
4 Replies
Sort By
- L4L7_53191
Nimbostratus
A fairly common technique here is to specify a maximum collection value of 1MB. The description section of HTTP::collect in the iRules Wiki discusses this, as you know, there are a few nuances you'll need to be aware of! - Rostislav_Zatol
Nimbostratus
But specifying 1MB collection value will never trigger HTTP_REQUEST_DATA in which I need to analyze the content. - hoolio
Cirrostratus
Is there a way for you to configure/change the client to not send chunked requests? - IheartF5_45022
Nacreous
Hi,
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