Uzbl

Tasklist

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
Task Type Bug Report
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Downloads 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!
Comment by Semen Maryasin (MarSoft) - 2009-07-08 10:59:34 AM
cookies may be passed to wget using
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...
Comment by Ben Boeckel (mathstuf) - 2011-04-14 04:33:58 AM
The latest release uses webkit's built-in download handler, so this should be fixed.

Loading...