Skip to content

Instantly share code, notes, and snippets.

@abarringer
Created February 17, 2010 04:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abarringer/306309 to your computer and use it in GitHub Desktop.
Save abarringer/306309 to your computer and use it in GitHub Desktop.
@danielgatis
Copy link

cookies : { "key1" => "value1", "key2" => "value2" }

@mib32
Copy link

mib32 commented Mar 12, 2017

this doesnt work anymore(((

@awls99
Copy link

awls99 commented Jun 29, 2017

@mib32 I've kinda tripped on this page while looking for something else, you can use my gem to use http party with cookie support:


class My_awesome_cookie_using_api
    include HTTParty_with_cookies
end

api = My_awesome_cookie_using_api.new
api.get 'http://someurl.com/endpoint'
api.cookies['darkside'] #=> 'We have cookies!'```

https://github.com/awls99/httparty-with-cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment