Quote:
Originally Posted by kovidgoyal
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.