TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Wget is looking for a maintainer

82 点作者 obsaysditto大约 15 年前

4 条评论

pyre大约 15 年前
One issue that I have with wget (and IIRC curl too) is that when downloading a file from a URL like, "<a href="http://example.com/file.php?id=1234" rel="nofollow">http://example.com/file.php?id=1234</a> it will download the file to 'file.php?id=1234'. This fails because the HTTP headers could specify the filename when returning the data (which wget will ignore) or that URL could be a redirect to the actual URL which contains the filename (but wget blindly uses the first url supplied). I understand that this functionality is probably desired when it comes to wget's mirroring functions (since the src= and href= values won't point to the redirect URL or actual filename) but there is no option to parse out the original file name even if all you are doing is providing a list of URLs to download (not mirror).<p>{edit} To be fair, this is a pain in the ass to do w/ LWP::UserAgent in Perl too:<p><pre><code> sub download_file_callback { my ($response,$useragent,$h) = @_; return undef if $response-&#62;code &#62;= 300 and $response-&#62;code &#60; 400; my $fname = $response-&#62;filename(); $useragent-&#62;remove_handler('response_header',owner =&#62; 'billy'); return $useragent-&#62;get($response-&#62;request()-&#62;uri(), ':content_file' =&#62; $fname); } $ua-&#62;add_handler( response_header =&#62; \&#38;download_file_callback, owner =&#62; 'billy'); my $response = $ua-&#62;get($url);</code></pre>
评论 #1287081 未加载
评论 #1287277 未加载
pquerna大约 15 年前
a 'maintainer' is a single point of failure.<p>build a community around a project, look at wget's main competitor, curl, for an example: <a href="http://curl.haxx.se/mail/list.cgi?list=curl-library" rel="nofollow">http://curl.haxx.se/mail/list.cgi?list=curl-library</a> (299 messages so far in april!)
评论 #1286463 未加载
评论 #1286977 未加载
marssaxman大约 15 年前
Strange to read about this here: Micah is a childhood friend of mine.<p>I'd still rather use wget than curl, with its clunky syntax, but most places have curl and not wget, so I'm stuck with it.
评论 #1287067 未加载
sandGorgon大约 15 年前
what are advantages of wget over curl - warm, fuzzy feeling aside ?
评论 #1287555 未加载
评论 #1287490 未加载