Is it possible to use Content-Encoding: gzip in an HTTP POST request?

I am trying to upload some compression files to a server. The files will be large enough, and the server will be a standard HTTP server, where the interface determines that they are not compressed. Is it possible to use something like Content-Encoding to indicate that a download request is compressed, as well as for downstream compression?

+6
source share
1 answer

Apache supports it with the mod_deflate module, but I do not see the general function of the web server. If you have access to the server, you can enable this module or rewrite the server-side code to process compressed data (for example, a special / php servlet that calls the original / php servlet with the unpacked data).

+6
source

Source: https://habr.com/ru/post/898072/


All Articles