Erlang HTTP Client: inets or ibrowse or ...?

I work with Erlang and should make efficient HTTP requests.

What is the current โ€œstandardโ€ HTTP client for Erlang / OTP?

Is it inets or ibrowse or something else entirely?

Any tips or pointers are appreciated.

+6
erlang otp inets
source share
3 answers

We use lhttpc, which is well suited for our use cases, but we have not done extensive alternative tests. The "standard" is, of course, the one that comes with OTP (httpc from inets).

+7
source

Currently, the FTP client and the HTTP client and server are included with Inets. Inets is just a web server. Some Intt Http clients at Inets are Inets Http (d), which is an implementation of Http 1.1.

I used ibrowse before, this is a http 1.1 client. You can use ibrowse to create HTTP requests. open your Erlang terminal and run ibrowse, but make sure you have the ibrowse folder in the Erlang lib folder on C: \ Program Files \ Erlang \ lib. In your terminal terminal Erlang.

ibrowse: start (). then make http requests. ibrowse: send_req ("http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=animal", [], get).

0
source

If my memory is served, inets is the OTP built-in HTTP server, so it is more or less "standard". In practice, however, I do not think he preferred other HTTP servers (mochiweb, yaws, etc.).

-one
source

All Articles