I am working with Erlang and need to make efficient HTTP requests.
What is the current "standard" HTTP Client for Erlang/OTP?
Is it inets or ibrowse or something else entirely?
Any advice or pointers appreciated.
I am working with Erlang and need to make efficient HTTP requests.
What is the current "standard" HTTP Client for Erlang/OTP?
Is it inets or ibrowse or something else entirely?
Any advice or pointers appreciated.
Currently an FTP client and an HTTP client and server has been incorporated in Inets. Inets is just a webserver. Some of the Http clients in Inets are Inets Http(d) which is an implementation of Http 1.1.
i have used ibrowse before, it is an http 1.1 client. You can use ibrowse to make http requests. open your Erlang terminal and start ibrowse, but make sure u have the ibrowse folder in your Erlang lib folder on C:\Program Files\Erlang\lib. In your Erlang terminal type.
ibrowse:start(). then, make the http requests like. ibrowse:send_req("http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=animal", [], get).
We're using lhttpc, which works well for our use cases, but we haven't done extensive benchmarks of the alternatives. The "standard" is, of course, the one that ships with OTP (httpc from inets).