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. QNetworkReply error code for HTTP 403
Forum Updated to NodeBB v4.3 + New Features

QNetworkReply error code for HTTP 403

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 6.8k 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.
  • V Offline
    V Offline
    vcsala
    wrote on 17 Dec 2010, 13:10 last edited by
    #1

    I am working on a small application which requires to implement Google's ClientLogin protocol. In some cases it requires a second authentication test which is practically a CAPTCHA test.

    If CAPTCHA validation is required after the first step an HTTP 403 error comes back and the reply contains the information regarding the second step (CAPTCHA token and CAPTCHA image URL).

    Question: what error code QNetworkReply gives back for HTTP 403?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on 17 Dec 2010, 13:21 last edited by
      #2

      QNetworkReply::ContentOperationNotPermittedError, see http://qt.gitorious.com/qt/qt/blobs/master/src/network/access/qnetworkaccesshttpbackend.cpp#line242 :

      @
      case 403: // Access denied
      code = QNetworkReply::ContentOperationNotPermittedError;
      break;
      @

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vcsala
        wrote on 17 Dec 2010, 13:28 last edited by
        #3

        Thanks, it helped. (Just to better understand: the remapping of the codes is mainly because NAM can handle several protocols, isn't it?)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on 17 Dec 2010, 13:35 last edited by
          #4

          I don't think is a remapping because http 403 is a forbidden code so is the same.

          [quote author="VCsala" date="1292592484"]Thanks, it helped. (Just to better understand: the remapping of the codes is mainly because NAM can handle several protocols, isn't it?)[/quote]

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dangelog
            wrote on 17 Dec 2010, 13:39 last edited by
            #5

            [quote author="VCsala" date="1292592484"]Thanks, it helped. (Just to better understand: the remapping of the codes is mainly because NAM can handle several protocols, isn't it?)[/quote]

            Exactly :-)

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

            1 Reply Last reply
            0

            1/5

            17 Dec 2010, 13:10

            • Login

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