Confirmed by changing the script to set 'Accept-Encoding: identity', which causes the server to send a non-compressed response, which then works.
For the record, upload.wikimedia.org does not reply with a compressed response, that's why the script works with it.
Confirmed by changing the script to set 'Accept-Encoding: identity', which causes the server to send a non-compressed response, which then works.
For the record, upload. wikimedia. org does not reply with a compressed response, that's why the script works with it.