Handling HTTP requests and responses

What is the best erlang library for handling HTTP requests and responses from an erlang application? I looked at inets, but as a standalone application, it is more like replacing curl.

I would like to access the external APIs from the erlang application, so you will need to analyze the responses and be able to make subsequent requests with cookies created from the response.

+4
source share
2 answers

There are mochiweb and misultin . Good tutorial on mochiweb. There are also other applications .

+2
source

What's the problem with inets (or curl, for that matter)? The alternative http client is ibrowse, which you can find on github.

If you need to parse html, there will be an html parser that is part of the mochiweb http server toolkit. Mochiweb also comes with a json parser.

+2
source

Source: https://habr.com/ru/post/1310896/


All Articles