RubyWget / "Axel"

“Axel does the same thing any other accelerator does: it opens more than
one HTTP/FTP connection per download and each connection transfers its
own, separate, part of the file.”

Basically I am wondering (as I want to slowly extend on my primitive
ruby “wget”, which so far supports 0 options the “normal” wget
supports…):

How could something like Axel be done in Ruby?
The url to Axel is at http://wilmer.gaast.net/main.php/axel.html

I’d be glad for any pointers.

Quoth Marc H.:

I’d be glad for any pointers.

Using httpaccess2 or a simple tcp stream or whatever, send headers to
the
server that include a Content-Range: bytes=blah-blah header.