https://kotlinlang.org logo
#random
Title
# random
c

Colton Idle

09/07/2023, 5:24 PM
anyone know how to get the actual size of a file download request in chrome over the wire? in other words. i want to see how many MB a file takes to download (a pdf) while its gzipped.
j

John Dior

09/08/2023, 12:39 AM
image.png
it just shows up on the bottom
c

Colton Idle

09/08/2023, 5:02 AM
thought that was just the final size on disk. ill try it out
j

John Dior

09/08/2023, 7:31 AM
i thought they were the same, if not maybe wireshark has something that could help
k

Klitos Kyriacou

09/08/2023, 10:25 AM
If you mean that you have an uncompressed file, say 5MB, and you download it and it gets gzipped on-the-fly while it's being downloaded (i.e. HTTP GET request with
Accept-Encoding: gzip
) then I don't think there's any way to find out how many gzipped bytes it has (unless you write your own function that counts).