As of now, the only way seems to be to assemble the MIME multi-part body oneself, produce a digest of it and pass that byte data to QNetworkAccessManager
sending method.
How to access request body of QNetworkRequest with QHttpMultiPart?
Pergunta
I need to calculate a digest (checksum) from the request body (e.g. raw POST data) that is being sent via QNetworkRequest
and include a digest signature in the request header.
How could I do this before sending the request (so the signature can be included in the header) ?
This is trivial when I'm using a byte array as the request body, but what if I have a QHttpMultiPart
object ?
Basically something like QHttpMultiPart.toString()
.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow