Im trying to use Nets/HTTP to use POST and put in a custom user agent. I\'ve typically used open-uri but it cant do POST can it?
POST
open-uri
You can try this, for example:
http = Net::HTTP.new('domain.com', 80) path = '/url' data = 'form=data&more=values' headers = { 'Cookie' => cookie, 'Content-Type' => 'application/x-www-form-urlencoded' } resp, data = http.post(path, data, headers)