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.
|