public
Created

  • Download Gist
gistfile1.txt
1 2 3 4
% 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.