Tiny HTTP Client

A really simple http client:

  1. Get content by url
  2. Follow redirect like your browser did
  3. Raise error otherwise

Examples:


html_content = TinyHttpClient.get("http://www.google.com")

add basic auth


html_content = TinyHttpClient.get("http://www.google.com") do |req|
  req.basic_auth 'user', 'pass'
end