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

iOS port of QNetworkRequest is not respect Cookie management of Qt API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.3.2
    • Network: Cookies
    • None
    • Mac OSX 10.10, iOS 7.1 / iOS 8
    • iOS/tvOS/watchOS

      Hello.

      I was working on a mobile application using Http Request. iOS does the cookie management as default. I partially examine the qtbase/src/network/access/qnetworkreplynsurlconnectionimpl.mm. There should be a line like

      nsRequest.HTTPShouldHandleCookies = NO;
      

      According the link below, this property is default YES. Qt API should handle this with QNetworkCookieJar if we want to.

      https://developer.apple.com/library/Mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/index.html#//apple_ref/occ/instp/NSURLRequest/HTTPShouldHandleCookies

      The main problem, Cookies managed by iOS is permanently stored in app sandbox. The get rid of that, either you should delete your application, or should delete programmatically. Either way, Qt should have us own classes for this.

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

            richard Richard Moe Gustavsen
            firatagdas Firat Agdas
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes