Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtNetwork and multipart encryption
Qt 6.11 is out! See what's new in the release blog

QtNetwork and multipart encryption

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 2 Offline
    2 Offline
    2beers
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

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

      Chuck

      1 Reply Last reply
      0
      • 2 Offline
        2 Offline
        2beers
        wrote on last edited by
        #3

        [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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

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

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved