Forum Discussion
marc_schaer_577
Nimbostratus
Sep 28, 2009Content-Length missing in HTTP request
Hi all,
i have an issue where i have not yet been able to find a working solution to. Maybe someone came across the same and knows a way on how to solve it with an irule.
pro...
marc_schaer_577
Nimbostratus
Sep 28, 2009thanks for the suggestions. And yes i am concerned about the requests not having Content-Length in the header.
@Aaron
The client app cannot be changed so easily. And that is why i wnated to come up with an easier solution through irules...
Concerning your suggestion. Did you mean something like this in your previous reply?
when CLIENT_ACCEPTED {
i can put here 1, 2, 512, 700 the results dont change...
TCP::collect 2
}
when CLIENT_DATA {
set clength [expr {[TCP::payload length] - 189}]
}
when HTTP_REQUEST {
HTTP::header replace "Content-Length" $clength
}
It returns some value now. But i am not sure though this is the way this should be done...
Can i be sure the header is always 189 bytes?
How do i know the value i should provide to TCP::collect. It seems, no matter what value i put, i always get the same result.
marc
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