When is http header completely downloaded?



  • QNetworkReply offers methods to query HTTP headers. On closer inspection of the documentation, it appears that even though an instance is available, header information may be incomplete. This is the reason that the metaDataChanged() signal is provided.. However, in a normal use case, one would want to process metadata once the header is information is complete, rather than processing it each time it changes. Unfortunately, there is no signal indicating that the header has been completely transmitted. Is there a simple way to process the header exactly once, at the time when header transmission is complete? I suppose this can be done in the first readyRead() signal, but I hopeful there is a more elegant solution.

    Thank you.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.