【发布时间】:2009-10-28 20:44:19
【问题描述】:
我正在尝试使用 urlretrieve 从以下形式的 url 下载文件:
http://example.com/download.php?id=6456&name=foo
但由于某种原因,我得到了一个空的回复。
我尝试了this question 中建议的方法似乎没有帮助,因为
remotefile.info()
不包含键'content-disposition',只有
['content-length', 'x-powered-by', 'refresh', 'server', 'connection', 'date', 'content-type']
有什么建议吗?
【问题讨论】:
标签: python download urllib2 urllib