Mnementh
Mnementh

Reputation: 51311

How can I use compression with QHttp?

In a existing application with Qt the QHttp-class is used to access data over the network. This communication is in the moment uncompressed, but the server allows compression (and browsers actually use it). How can I use QHttp to make accept compression?

Upvotes: 1

Views: 916

Answers (2)

SIFE
SIFE

Reputation: 5695

According to this two sources, the server only capable to send compressed responses, and the browser do the decompressing process, so I think you have either use/implement a decompression function.

http://www.http-compression.com/

QHttp & HTTP 1.1 Compression

Upvotes: 0

Kamil Klimek
Kamil Klimek

Reputation: 13130

QHttp is obsolete class. Try using QNetworkAccessManager. It uses compression by default in responses

Upvotes: 2

Related Questions