Skip to content
Discussion options

You must be logged in to vote

I've done some digging, and we've got the same behaviour as requests and the httpie command line tool here.

You're seeing a difference when using urlopen, because that doesn't support the gzip encoding.

The server is responding differently depending on if it's sending a gzip encoding response, or if it's sending an unencoded response. For gzipped responses it can't determine the content-length up front, but the response will be compressed.

You can see the difference by switching gzip compression off...

$ httpx https://downloads.bitwig.com/4.2.3/bitwig-studio-4.2.3.deb -v --headers Accept-Encoding 'identity'
* Connecting to 'downloads.bitwig.com'
* Connected to '62.252.115.10' on port 443
*

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wizard-28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants