Ruby/libcurl is Ruby extention for
libcurl supporting HTTP FTP SSL.
tested on
- You can get html file from http server.
- You can post strings to CGI.
- with proxy, SSL, auth, cookie...
- You can (get|put) files (from|to) ftp server.
- Easy to write "Web Robot"
tested on
- FreeBSD
- Debian GNU/Linux
- Cygwin
example
require 'curl'
w = Curl.new
w.url = 'http://www.ruby-lang.org/'
#w.proxy = 'proxy.your.domain:8080' # edit here!
w.followlocation = true
w.timeout = 20
w.perform
puts w.body_str
puts w.header_str