Text compression for HTTP with POST options

I am writing client software that initiates an HTTP request with a large block of text (actually a JSON object) as a POST parameter. I want to compress this text before sending and unpacking the text on the server.

Gzip produces binary that I cannot send as a POST parameter, I think.

What are the options / algorithms for compressing text and sending it to a web server?

Edit: will this be a GZIP option and then BASE64 encode the binary data?

+3
source share
2 answers

Why don't you just use standard gzip HTTP compression ?

(, , .)

- . , gzip , , multipart/form-data, un-gzip ?

+1

/ , Json blob. , , , .

http post, , . , # , .

0

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


All Articles