Postman - Option to view compressed response size..?
Asked Answered
I

2

41

While testing Spring GZIP compression on REST endpoint observed, with or without compression enabled postman response size showed original response size.

Compression Enabled

Compression Disabled

Content-encoding still showed as gzip, but the response size in postman is always uncompressed/original response size. This made me wonder is response compressed or not. Only after checking in chrome realised, Postman always showed uncompressed response size.

Compression Enabled Compression Disabled

Wanted to know why postman always shows uncompressed/original response size..? Is there a option to view compressed response size in Postman..? or Is postman not the right tool to measure response size..?

Intertwist answered 27/11, 2018 at 5:55 Comment(2)
Upvote, because I also want that, but actually I should downvote, because stackoverflow is the wrong place to ask for a feature, I suggest you post this at Postman under "feature request".Alumna
@Wilt, my question was to know if there is already an option to view compressed response size. I understand there is no option, as suggested I have created a "feature request" - community.getpostman.com/t/…Intertwist
J
4

Instead of wasting time on Postman, I found Fiddler is the easiest way to read network size

Postman is actually using Jquery-style stuff to POST/GET/PUSH... data, then show result somehow. and the Network tab is not always working well. In my case, it never shows once how much data was transferred back, same in my teammates' environments.

[NOTE] Fiddler gives you correct Tunnel Received only when request-response are in different physical location of intranet/internet.

enter image description here

Here is same API with different CompressionLevel enter image description here

Joelynn answered 7/5, 2019 at 14:15 Comment(0)
K
2

You can validate the size by curl:

# without encoding
curl -v -o response.json 'http://your.site'
# with gzip encoding
curl -v -o response.json.gz -H 'Accept-Encoding: gzip' 'http://your.site'

and check the file size:

du -sh *

Example output:

708K    response.json
96K     response.json.gz
Kristianson answered 26/3 at 3:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.