Questions tagged [http-compression]

HTTP compression is a capability that can be built into web servers and web clients to make better use of available bandwidth, and provide faster transmission speeds between both

HTTP compression is a capability that can be built into web servers and web clients to make better use of available bandwidth, and provide faster transmission speeds between both. HTTP data is compressed before it is sent from the server: compliant browsers will announce what methods are supported to the server before downloading the correct format; browsers that do not support compliant compression method will download uncompressed data. The most common compression schemas include gzip and deflate, however a full list of available schemas is maintained by IANA

309 questions
0
votes
0 answers

Compression with zlib gives two different results

I am working with zlib data from 3 days and I can not get out of this problem: The original zlib compressed data hex is as follows:…
Wasosky
  • 16
  • 1
0
votes
0 answers

Encode HTTP-request body with gzip

When I send a request to HTTP server I can specify header Accept-Encoding: br, gzip, deflate, and then server can compress the response body. Is there a way to compress sent request the same way using curl or any other http client?
Dimitrius
  • 564
  • 6
  • 21
0
votes
1 answer

How to eliminate mime type by using appcmd.exe

I added encoding mime type of static file for IIS by the following command such as the following. but I do not know how to eliminate the mime type. Please let me know the appcmd command to eliminate mime-type that I added one. sample : encoding…
kn11n
  • 5
  • 2
0
votes
1 answer

WCF Compression in .NET 4 and IIS 7.5

Does enabling static and dynamic content compression in IIS 7.5 work for compressing .NET 4 WCF Services? Curious if I still need to do this when using IIS 7.5 and .NET…
obautista
  • 3,517
  • 13
  • 48
  • 83
0
votes
1 answer

Blazor wasm, IIS, compression not for all files

I have a web app created with blazor wasm standalone and published on IIS. I use custom web.config for enable compression, as described here link I noticed that not all files are compressed. Files under _content folder (css and js) are non…
andreat
  • 297
  • 2
  • 15
0
votes
0 answers

HTTP Request parse the data Content-Encoding "deflate"

I am receiving the request in my Rest API with headers as "Content-Encoding" as deflate. How to parse the request and make it a String in Java? Please share any code reference to do the same. headers: 'Accept-Encoding':…
Siva Samraj
  • 37
  • 1
  • 5
0
votes
0 answers

How to compress the stream of data sent to client?

I am writing a Flask API endpoint that takes s3 URL as a parameter and sends the s3 object as response. pseudoCode: def stream_s3(): while remaining_bytes>0: # ... logic to choose right byte range actual_bytes =…
Viswesh M
  • 1
  • 1
0
votes
1 answer

How do I enable http compression in tomcat for static files inside the war file?

I want to enable tomcat to deliver files stored in the WAR file using http-compression. This question if specific to tomcat, please do not suggest using another webserver. It would be great if this could be achieved only from the tomcat…
sorin
  • 161,544
  • 178
  • 535
  • 806
0
votes
1 answer

How to check browser's support for brotli compression on client application side?

I am asking this question for educational purposes. I have hosted my static assets on S3 with Cloud front. I want to apply brotli and gzip compression during the build process. As per articles available on various platforms It is possible to add…
Always_a_learner
  • 4,585
  • 13
  • 63
  • 112
0
votes
1 answer

Can't enable nginx gzip on Elastic Beanstalk (Php, symfony)

I'm facing an issue with AWS Elastic Beanstalk(Php,Symfony) and gzip. I'm trying to enable Gzip compression but it work only for .svg files with this configuration : Folder hierarchy nginx.config server { gzip on; gzip_static on; gzip_comp_level…
0
votes
1 answer

Enable/Diasable HTTP compression for SpringBoot-Server on Cloud Foundry

I have a Spring Boot Application on Cloud Foundry and want to deactivate the HTTP - Compression that is used in the following HTTP-Header: Accept-Encoding: gzip, deflate . I want to prevent a BREACH-attack. Is there an Entry in the manifest.yml,…
0
votes
0 answers

Can we compress url parameter with gzip?

I have a requirement for passing a JSON object as a url parameter like this : Eg: example.com/index.html&uielements={"Bookmark":["disable"],"Favourite":["hide"]} Can I use gzip compression to compress the url parameter `uielements' ? I know we can…
Amit
  • 193
  • 1
  • 8
0
votes
1 answer

Compress js lambda response before sending it to the API gateway

I have an AWS lambda that is returning a response which is more than 6MB in size. (I know its not ideal and is limiting the AWS lambda limit which is 6MB for RequestResponse lambda invocation type). I get the below error in this case : 413 Request…
0
votes
1 answer

Yii framework dealing with compressed requests

I am pretty new to the Yii framework, and I needs some help with dealing with compression. I followed this link http://www.yiiframework.com/wiki/39/, which works like a charm! Now my server is compressing everything in the responses. However, I am…
Yenyi
  • 419
  • 5
  • 19
0
votes
0 answers

Netty GZIP Decoder stops decoding/decompressing randomly

I have a simple application running a TCP server, based on Netty. For the incoming requests, I am using ZlibCodecFactory.newZlibDecoder(ZlibWrapper.GZIP) which is working perfectly fine, but after some time, it stops decoding anything, acting like a…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39