View Single Post
Old 12-06-2013, 10:44 AM   #1
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Issue with Harper's recipe

recently login support for Harpers full recipe stopped working. After looking at the site and the code I'm still not sure what it is that is wrong.

I used this to login as a latest version but no luck.

Code:
    def get_browser(self):
        br = BasicNewsRecipe.get_browser(self)
        br.open(self.INDEX)
        if self.username is not None and self.password is not None:
            br.addheaders.append(('X-Requested-With', 'XMLHttpRequest'))
            tt = str(int(time.time() * 1000))
            data = urllib.urlencode({ 'm':self.username
                                     ,'p':self.password
                                     ,'rt':self.INDEX
                                     ,'tt':tt
                                   })
            br.open(self.LOGIN, data)
        return br
The function validate_cds_login in http://harpers.org/wp-content/themes...s/js/common.js is the one in charge of submitting the login info.

Any ideas what am I missing?
kiklop74 is offline   Reply With Quote