Sha256: 480a67cf83dc7bdb0b07b775b3b8d96b5e51cdeb732002f5271bcc092a3eb493
Contents?: true
Size: 320 Bytes
Versions: 16
Compression:
Stored size: 320 Bytes
Contents
# To send custom user agents to identify your application to a web service (or mask as a specific browser for testing), send "User-Agent" as a hash to headers as shown below. require 'httparty' APPLICATION_NAME = "Httparty" response = HTTParty.get('http://example.com', :headers => {"User-Agent" => APPLICATION_NAME})
Version data entries
16 entries across 15 versions & 5 rubygems