Create a gist now

Instantly share code, notes, and snippets.

% RUBYLIB=lib ruby -rftw/request -e 'req = FTW::Request.new("http://www.google.com/"); req.method = "GET"; req.headers["whoa"] = "testing"; puts req'
GET / HTTP/1.1
host: www.google.com
whoa: testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment