Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@danielgatis

This comment has been minimized.

Copy link

@danielgatis danielgatis commented May 27, 2014

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

@mib32

This comment has been minimized.

Copy link

@mib32 mib32 commented Mar 12, 2017

this doesnt work anymore(((

@awls99

This comment has been minimized.

Copy link

@awls99 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