EarlPost
Leverages the builtin net/http(s) 'gem' of the Ruby stdlib to submit POSTS and read back HTTP/S Requests and Responses.
Installation
Add this line to your application's Gemfile:
gem 'earl_post'
And then execute:
$ bundle
Or install it yourself as:
$ gem install earl_post
Usage
Use Earl::Post.to_url('https://example.com', post_data)
-- or --
Use post_data = Earl::Msg.new('https://example.com', post_data)
to be able to
access post_data.submit
to submit and post_data.response
to store and access
the response.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request