Useful for external tools using the json output. The methods '_calc_headers' and '_calc_cookies' have been copied from the downloader/external, now they just use "info_dict['http_headers']".
This comes with a very simply implementation for wget; the real work is in setting up the infrastructure.