Sha256: 029e29c73024ef444e945f1317b82e3673e440b70b833d93985576ba7b02af97
Contents?: true
Size: 321 Bytes
Versions: 38
Compression:
Stored size: 321 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
38 entries across 38 versions & 3 rubygems