Project

easy_http

0.0
No commit activity in last 3 years
No release in over 3 years
EasyHTTP 0.1.5 2012, Tomas J. Sahagun <113.seattle@gmail.com>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.2
 Project Readme

Basic Usage

Simple request:

session = EasyHTTP::Session.new "https://www.google.com/", { :ssl => true }
session.get "/"

Additional config:

session = EasyHTTP::Session.new "https://www.google.com/", {
  :ssl => true,
  :port => 443,
  :username => 'http_auth_user',
  :password => 'http_auth_pass',
  :read_timeout => 1000,
  :debug => $sdtout,
  :insecure => false,
  :max_redirs => 10
  }

Store session cookies

session = EasyHTTP::Session.new "https://www.google.com/", { :ssl => true }
session.session_cookies

Enable body encode (only ruby >= 1.9.2):

Encoding.default_internal = 'UTF-8'

Installation

~$ sudo gem install easy_http

Author

License

EasyHTTP uses the MIT license, check LICENSE file.