HTTP Patch方法是除了post,get,put,delete以外的一個新方式,post
網上查不到的,也算是獨家吧:spa
主要用下面這個方法:get
QNetworkReply *sendCustomRequest(const QNetworkRequest &request, const QByteArray &verb, QIODevice *data = 0);network
代碼:request
QNetworkAccessManager *_qnetwork = new QNetworkAccessManager();方法
QNetworkReply* reply=0;upload
...vi
QByteArray * _b_arr = new QByteArray(QString("參數").toUtf8());
QBuffer *_qbf_upload =new QBuffer( _b_arr);
reply = _qnetwork->sendCustomRequest (mreq,QByteArray("PATCH"),_qbf_upload);co
...let