Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compression HTTP

Tags:

compression

Is it possible to POST request data from browser to server in compressed format? If yes, How can we do that?

like image 657
Maulin Avatar asked Nov 06 '22 11:11

Maulin


1 Answers

Compressing data sent from the browser to the server is not natively supported in the browsers.

You'll have to find a workaround, using a clientside language (maybe a JavaScript GZip implementation, or a Java Applet, or ...). Be sure to visually display to the user what the browser is doing and why it is taking some time.

I don't know the scope of your application, but on company websites you could just restrict input to compressed files. Ask your users to upload .zip/.7z/.rar/... files.

like image 117
Konerak Avatar answered Nov 13 '22 07:11

Konerak