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. Debugging a Protocol Network Error
Forum Updated to NodeBB v4.3 + New Features

Debugging a Protocol Network Error

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.1k 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.
  • R Offline
    R Offline
    reactive
    wrote on last edited by
    #1

    Hi, I'm trying to write a simple test app to post a SOAP request.
    I'm using the example code from the QNetworkAccessManagerDoc.
    http://doc.qt.nokia.com/latest/qnetworkaccessmanager.html#details

    I set the header's content type to text/html and utf-8. I set accept to application/soap+xml
    I call manager->post(request, xmlQString.toUtf8())

    The error I keep getting back is 301: "the Network Access API cannot honor the request because the protocol is not known"
    http://doc.qt.nokia.com/latest/qnetworkreply.html#NetworkError-enum

    Can anyone give me hints about what could be causing that type of error? For example, header, content or connection?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsprenkle
      wrote on last edited by
      #2

      Are you sure the service you're trying to use is a SOAP service?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        reactive
        wrote on last edited by
        #3

        Gah! After almost 2 hours of trying to solve this someone just pointed out that I needed "http://" in front of the IP when I call request.setUrl(QUrl("000.000..."))
        Sorry for the post! :)

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MaximAlien
          wrote on last edited by
          #4

          Thanks for suggestion reactive!

          I had the same issue and adding @http://@ helped me.

          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