View Single Post
Old 12-10-2016, 02:56 PM   #14
leo738
Enthusiast
leo738 began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Found an example of a similar login (available on github repo):

calibre/recipes/hbr.recipe

Code:
  rq = Request(rurl, headers={
            'Accept': '*/*',
            'Accept-Language': 'en-US,en;q=0.5',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'Referer': url,
            'X-Requested-With': 'XMLHttpRequest',
        },  data=urlencode({'username': self.username, 'password': self.password,'deviceid':deviceid, 'persistent':'on'}))
Looks like it's working now, will get it tidied up & then submit it.

Regards,

Leo
leo738 is offline   Reply With Quote