Questions tagged [inets]

Inets is an Erlang application providing a container for Internet clients and servers, including an HTTP/1.1 compliant web server.

35 questions
0
votes
1 answer

Erlang inets httpc connect to local inets httpd

I'm trying to implement a module with httpd, which handles HTTP get request for a process. Basically it handles the incoming get request, parses the get parameters and calls a synchronous gen_server method on the node, which started the http server.…
balcsok
  • 33
  • 2
  • 11
0
votes
0 answers

Nitrogen wf.hrl file is deleted with a warning

I am using a slim_version of cowboy, I have also tried that on slim_yaws on nitrogen. What puzzles me is the abrupt deletion of the wf.hrl file by the VM. I do not understand what causes this!! Here is what appears in the console. Warning. Deleted…
0
votes
1 answer

How to start inets in Erlang?

{ok, Pid} = inets:start(httpd, [{port, 0}, 2> {server_name,"httpd_test"}, {server_root,"/tmp"}, 2> {document_root,"/tmp/htdocs"}, {bind_address, "192.168.0.31"}]). ** exception error: no match of right hand side value…
woocheol
  • 87
  • 1
  • 8
0
votes
1 answer

Does inets support CGI?

YAWS can run an old CGI application written using python perfectly. However, I still want to know whether or not inets supports CGI ? Best Regards!
-1
votes
1 answer

inets httpd cgi script: How do you retrieve json data?

The cgi scripts that I have tried are unable to retrieve json data from my inets httpd server. In order to retrieve json data in a cgi script, you need to be able to read the body of the request, which will contain something like: {"a": 1, "b":…
7stud
  • 46,922
  • 14
  • 101
  • 127
1 2
3