I'm interested in setting my own user agent when using the ruby RestClient gem.
http://github.com/archiloque/rest-client
However, I can't find any documentation on how to do so. Any pointers?
RestClient.get 'http://localhost', :user_agent => "myagent"
See https://github.com/rest-client/rest-client/blob/master/lib/restclient.rb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With