FS#45 - Downloads other than simple GETs don't work
Attached to Project:
Uzbl
Opened by Brendan Taylor (bct) - 2009-06-24 02:18:57 AM
Last edited by Brendan Taylor (bct) - 2011-04-14 02:13:06 PM
Opened by Brendan Taylor (bct) - 2009-06-24 02:18:57 AM
Last edited by Brendan Taylor (bct) - 2011-04-14 02:13:06 PM
|
DetailsDownloads that are triggered by a POST or require you to be logged in can't work with the existing download_handler, since the download_handler script doesn't get passed what request method to use, what POST parameters should be sent, what cookies should be sent, or what HTTP authentication details to use.
A good test case is http://jqueryui.com/download . Clicking the Download button POSTs some parameters. The response is a zip file which triggers the download_handler, but the download_handler is just passed the request URI, so the script GETs that URI and you end up downloading an HTML page. It doesn't look like WebKit exposes the method and request parameters to download_cb either. :( |
This task depends upon
Closed by Brendan Taylor (bct)
2011-04-14 02:13:06 PM
Reason for closing: Fixed
Additional comments about closing: fixed!
2011-04-14 02:13:06 PM
Reason for closing: Fixed
Additional comments about closing: fixed!
wget $8 --load-cookies $XDG_DATA_PATH/uzbl/cookies.txt
or such; while I don't know what to do with HTTP auth and method...