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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request