Created
May 24, 2013 00:17
-
-
Save fkumro/5640488 to your computer and use it in GitHub Desktop.
Showing how to send custom headers using rest-client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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