QtNetwork and multipart encryption



  • Hi everyone. Can I have multipart POST requests using QNetworkAccessManager ?? I read somewhere that this might be available only in qt 4.8? is that true?

    Thanks



  • Hi 2beers, what do you mean by "might be available only in the Qt 4.8 ?", do you mean Qt 4.8 will have some API to do that ?

    I don't think so. Multipart post requests can be done everywhere if you know it. Just send data with the multipart format using Boundary, ctrl, etc. :)



  • [quote author="Chuck.Gao" date="1306720066"] Multipart post requests can be done everywhere if you know it. Just send data with the multipart format using Boundary, ctrl, etc. :)[/quote]

    what do you mean by "can be done everywhere"?

    Anyway I found what I was looking for: http://bugreports.qt.nokia.com/browse/QTBUG-6222



  • [quote author="2beers" date="1306683337"]Hi everyone. Can I have multipart POST requests using QNetworkAccessManager ?? I read somewhere that this might be available only in qt 4.8? is that true?

    Thanks[/quote]

    Yes. 4.8 will introduce the QHttpMultiPart and the QHttpPart classes, which you can use to build mime/multipart HTTP requests. Overloads for QNetworkAccessManager::post and ::put (which take a QHttpMultiPart) will be introduced as well. In the meanwhile, you can do multipart requests, but you have handle everything by hand (or by using a 3rd party library).


Log in to reply
 

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