marc_schaer_577
Sep 28, 2009Nimbostratus
Content-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.
problem:
we have an http client that does not send the Content-Length header parameter in its http POST requests. This in turn creates issues on the receiving server. I thought it would be nice if i could simply calculate the Content-Length in an irule and then add it to the request with "HTTP::header insert "Content-Length" $clength". Now the issue is that i have not managed to come fill the clength variable with a value...
I played with HTTP::collect and HTTP::payload but i have not managed to get a working result.
did anyone already have a similar issue and maybe also have a working irule to solve this?
thanks a lot,
marc