开发者

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

开发者 https://www.devze.com 2023-04-08 08:44 出处:网络
I\'m trying to upload some files with compression to a server. The files will be fairly large and the server is a standard HTTP server where the interface defines that they\'re not compressed. Is it p

I'm trying to upload some files with compression to a server. The files will be fairly large and the server is a standard HTTP server where the interface defines that they're not compressed. Is it po开发者_JAVA技巧ssible to use something like Content-Encoding to indicate that the upload request is compressed, much like it is used for downstream compression?


Apache supports it with the mod_deflate module but I does not look a common web server feature. If you have access to the server you can enable this module or rewrite the server side code to handle your compressed data (e.g. a special servlet/php which call the original servlet/php with the decompressed data).

0

精彩评论

暂无评论...
验证码 换一张
取 消