View Single Post
Old 01-02-2015, 07:34 PM   #5
itsWeller
Junior Member
itsWeller began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2014
Device: Kindle Paperwhite
Sure enough, after a bit of probing, you were right - the issue isn't with chunked transfer. It actually appears to be checking the referer header before authorizing the download, and dropping

br.addheaders = [("Referer", "http://servername.com")]

in ebook_download.py is enough to get the plugin off the ground and enable downloads. Now the next challenge is, how can I specify headers from within my plugin so I can do this the *right* way? I see I can supply cookies for authentication, but I don't see any way to change the headers of the download request.
itsWeller is offline   Reply With Quote