@goren # uzbl's example configuration sets this script up as its download_handler.
# this script is run when uzbl encounters a URL that it can't display, and when
# a download is requested using the 'download' command.
#
# if the script prints a file path to stdout, uzbl will save the download to
# that path using it's internal downloader.
#
# if nothing is printed to stdout, the internal download will be cancelled.
# you could do your own download handling in your script that way.