Skip to content

Instantly share code, notes, and snippets.

@fkumro
Created May 24, 2013 00:17
Show Gist options
  • Save fkumro/5640488 to your computer and use it in GitHub Desktop.
Save fkumro/5640488 to your computer and use it in GitHub Desktop.
Showing how to send custom headers using rest-client
resource = RestClient::Request.execute(:method => :get, :url => 'YOUR_URL_HERE', :headers => {'X-Pitbull' => 'woof', 'X-Kitten' => 'fluffy'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment