Pregunta

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().

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top