Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54868

patch method in QNetworkAccessManager

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.8.0
    • None
    • Network
    • None
    • 4bbcc054e03152923938adbd610e954578741755

    Description

      I'm currently working on a Qt application that calls a web API which, for one task, requires uploading a file via a PATCH request.

      The workaround described here:
      http://stackoverflow.com/questions/35683785/qnetworkaccessmanager-how-to-send-multipart-patch-request

      should work, but I feel the cleanest way would be to add these methods to QNetworkAccessManager:

      QNetworkReply *QNetworkAccessManager::patch(const QNetworkRequest &request, QIODevice *data)

      QNetworkReply *QNetworkAccessManager::patch(const QNetworkRequest &request, const QByteArray &data)

      QNetworkReply *QNetworkAccessManager::patch(const QNetworkRequest &request, QHttpMultiPart *multiPart)

      I don't know how widely this HTTP request is used globally, so I don't know how much of an issue this is.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richmoore Richard Moore (qtnetwork)
            alhuillier_koalabs Alexandre LHUILLIER
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes