Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

How to post QHttpPart with sequential QIODevice

$
0
0
I am writing an application that is posting data as http multipart to a server. One of the parts is ordinary text, the other part is read from a sequential QIODevice. Post with QNAM hangs after all of the data is read from the device. There is a note in the documentation [qt-project.org] that: if device is sequential (e.g. sockets, but not files), QNetworkAccessManager::post() should be called after device has emitted finished(). However QIODevice [qt-project.org] doesn’t emit finished() at all. Is there an error in the documentation? What is the proper way to use sequential QIODevice with QHttpMultipart?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>