Another option is the CURL library.  You could execute curl commands
in backticks for a quick-and-dirty solution or check out _why's
explanation of Ruby/DL for a more elegant solution.  He specifically
demonstrates a little example with libcurl.