TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Wget is looking for a maintainer

82 pointsby obsaysdittoabout 15 years ago

4 comments

pyreabout 15 years ago
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 未加载
pquernaabout 15 years ago
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 未加载
marssaxmanabout 15 years ago
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 未加载
sandGorgonabout 15 years ago
what are advantages of wget over curl - warm, fuzzy feeling aside ?
评论 #1287555 未加载
评论 #1287490 未加载