Exemplo n.º 1
0
 def cookiesForUrl(self, url):
     """
     Public method to get the cookies for a URL.
     
     @param url URL to get cookies for (QUrl)
     @return list of cookies (list of QNetworkCookie)
     """
     if not self.__loaded:
         self.load()
     
     globalSettings = QWebSettings.globalSettings()
     if globalSettings.testAttribute(QWebSettings.PrivateBrowsingEnabled):
         return []
     
     return QNetworkCookieJar.cookiesForUrl(self, url)
Exemplo n.º 2
0
 def cookiesForUrl(self, url):
     return QNetworkCookieJar.cookiesForUrl(self, url)
Exemplo n.º 3
0
 def cookiesForUrl(self, qurl):
     cookies = QNetworkCookieJar.cookiesForUrl(self, qurl)
     #for i in cookies:
     #    info = get_cookie_info(i)
     #    print "------------>> %(domain)s " % info
     return cookies