View Single Post
Old 08-06-2019, 10:13 AM   #14
bobbysteel
Big Poppa
bobbysteel began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
Quote:
Originally Posted by kovidgoyal View Post
turn off following redirects in the browser and manually get the token from the response headers in that case.
how can i get the reponse headers? the POST doesn't return properly in Calibre. in command line curl I can at least get back the 302 destination. in my test recipe now i have
Code:
            data = urlencode({
                'gotoUrl': self.INDEX,
                's': 1,
                'username': self.username,
                'password': self.password})
            geturl = br.open('https://login.thetimes.co.uk', data).geturl()
but the open never resolves as it hangs.
bobbysteel is offline   Reply With Quote