Apache HTTP Proxy - Chunked to Unchunked?

1.1k views Asked by At

I have access to a 3rd party Web API that only responds with chunked response data (Transfer-Encoding: Chunked).

On the other side I have a 3rd party client that can only accept unchunked responses (Content-Length: x). The client is configurable, so I can change the API endpoint.

Is it possible to setup Apache httpd to "unchunk" the response data, remove the "chunked" header and apply the correct "content-length"?

I have tried nginx (windows) and that just passes the unchunked data through. I have also tried Apache with mod_proxy but that seems to pass the chunked data through too.

Thanks.

0

There are 0 answers