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. Bug or feature with QNetworkRequest in qt 4.8.0 ?
Forum Updated to NodeBB v4.3 + New Features

Bug or feature with QNetworkRequest in qt 4.8.0 ?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.9k 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.
  • B Offline
    B Offline
    BootGenius
    wrote on last edited by
    #1

    can anybody explain to me. Recently I have changed my qt version from 4.7.4 to 4.8.0. But now my applications (which are using http requests to server) not works at all. I'm using QNetworkAccessManager and QNetworkRequest for my POST requests. And I have found out that in versions before 4.8.0 POST requests were sended with content type = application/x-www-form-urlencoded. But now (in qt 4.8.0) requests are sended by default with content type = application/octet-stream. Therefore, server handled my request, can't parse POST parameters I am sending. Is this a bug or a feature, which had appeared with qt 4.8.0 release? Sorry for my bad English

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      I am not if it is a bug or a feature but as a workaround you can try to override the HTTP header using "QNetworkRequest::setHeader":http://developer.qt.nokia.com/doc/qt-4.8/qnetworkrequest.html#setHeader

      http://anavi.org/

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BootGenius
        wrote on last edited by
        #3

        Yes. I know. I have already done it. Just interetesting to know why Qt developers have not done it for backward compatibility

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="BootGenius" date="1329296002"]Yes. I know. I have already done it. Just interetesting to know why Qt developers have not done it for backward compatibility[/quote]

          In this case I recommend you to check for similar issues or to submit your question at https://bugreports.qt-project.org/

          http://anavi.org/

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BootGenius
            wrote on last edited by
            #5

            Ok. Thanks

            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