Inets is an Erlang application providing a container for Internet clients and servers, including an HTTP/1.1 compliant web server.
Questions tagged [inets]
35 questions
25
votes
4 answers
How do I do an HTTPS request with Erlang?
I tried the inets library but it times out. I don't think it supports HTTPS. I am trying to use ibrowse, but it isn't working.

gersh
- 2,227
- 4
- 23
- 23
8
votes
2 answers
Elixir - problems with https URLs
I'm new to Elixir and Erlang and having some issues with accessing https URLs. I've tried the Elixir-specific HTTPotion and Erlang's :inets module.
So from the iex console (Interactive Elixir):
With…

David Escobar
- 171
- 6
6
votes
3 answers
Erlang HTTP Client: inets or ibrowse or ...?
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.

Toby Hede
- 36,755
- 28
- 133
- 162
6
votes
1 answer
Erlang: HTTP GET Parameters with Inets
This post indicates how to make a simple GET HTTP request with Erlang's Inets application.
Sometimes, URLs have GET parameters:
http://example.net/item?parameter1=12¶meter2=1431¶meter3=8765
Besides including the parameters in the URL…

Ted Karmel
- 1,046
- 1
- 12
- 20
6
votes
3 answers
Where does Nitrogen get the best performance - yaws, mochiweb, or inets?
The Nitrogen project web page declares equal support for yaws, mochiweb, and inets, but with which of these web servers is it going to perform the best? I.e. for a large scale application with mostly dynamic content with nitrogen + a web server…

Jeremy Raymond
- 5,817
- 3
- 31
- 33
6
votes
3 answers
Erlang: when to perform `inets:start()`?
What is the appropriate place for performing inets:start() ?
in `applicationname_app' module?
in applicationname_sup supervisor module?
in a child process hanging from the supervisor?\
someplace else?
(I am still struggling with inets:httpd)
Note:…

jldupont
- 93,734
- 56
- 203
- 318
3
votes
3 answers
Working example for Erlang Server Interface
I am trying to make Erlang's Inets mode_esi work and run some function. So, far, I did not succeed. Can someone post a minimal example of how to run Inets so that a url like http:localhost:8099/esi/my_mod:foo will invoke the method…

Little Bobby Tables
- 5,261
- 2
- 39
- 49
3
votes
1 answer
why the cowboy as httpclient can't start inets
I want to send http post out from cowboy by using the otp's httpc:request/4;
the application:start(inets) returns an error:
error,{"no such file or directory","inets.app"}
how can i start the inets??

jianjyan
- 41
- 3
3
votes
3 answers
Erlang Web and Inets BindAddress
After installing Erlang Web 1.3 and starting it in interactive mode, I get the following error in the logs:
Failed to start service:
"config/inets.conf"
due to: "httpd_conf: 0.0.0.0 is an
invalid address"
In my inets.conf I have the…

Roberto Aloi
- 30,570
- 21
- 75
- 112
2
votes
4 answers
Inets http client + authorization
How should I specify user/password for client authorization in http request made by httpc:request() function??

mkorszun
- 4,461
- 6
- 28
- 43
2
votes
2 answers
Erlang: inets httpd with SSL
It is asininely ridiculous how difficult this is to set up. I've been trying for 3 days now. Combed the internet and this site for help, but nothing has worked.
What I want is conceptually simple. I want an inets httpd server with ssl. Getting…

user3355020
- 315
- 1
- 9
1
vote
1 answer
How to define server root for inets tftp server
Seems trivial, but property {server_root, Path} in server config doesn't work. Any hints?

mkorszun
- 4,461
- 6
- 28
- 43
1
vote
1 answer
Can Erlang's mod_esi redirect?
I'm trying to learn doing web application development in Erlang, just using the standard library's inets modules at this stage.
The snag I've hit is that I want to validate the data from a post query, and then either redirect back to the form page…

joeblog
- 1,101
- 11
- 17
1
vote
0 answers
elixir: what are pros/cons of putting :inets:start in a function?
Currently I have :inets.start and :ssl.start in the hello/0 function. Is there documentation that discusses pros/cons of putting initialization code in that function vs. elsewhere?
$ cat lib/jsontest.ex
defmodule Jsontest do
@u1…

AG1
- 6,648
- 8
- 40
- 57
1
vote
1 answer
inets httpd: Can't get simple esi script to work
Here's the proplist_file that I use to configure the httpd server:
[
{modules, [
mod_alias,
mod_actions,
mod_cgi,
mod_get,
mod_esi,
mod_log
]},
{bind_address, "localhost"},
{port,0},
{server_name,"httpd_test"},
…

7stud
- 46,922
- 14
- 101
- 127