Skip to content

Update from Net::HTTP to a more robust HTTP library #1

@elifoster

Description

@elifoster

You really shouldn't be using Net/HTTP for production applications.
Here are many reasons why you should not use Net/HTTP:

  • single-threaded
  • poor connection design
    • opt-in to keep-alive
    • poor SSL support
  • does not support cookies
  • cannot follow redirects
  • It is one of the slowest HTTP clients for Ruby

I would recommend using one of the libcurl libraries, or one of the "original" ones (not built on top of Net/HTTP like most of the clients), such as curb, em-http-request, or the oldest and my personal favorite, httpclient.

Here's a nice slideshare to provide some statistical information regarding Ruby HTTP clients, made by Hiroshi Nakamura, Ruby developer and developer of HTTPClient: http://www.slideshare.net/HiroshiNakamura/rubyhttp-clients-comparison

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions