inets

inets httpd: Can't get simple esi script to work

只愿长相守 提交于 2020-01-06 11:47:23
问题 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"}, {server_root,"/Users/7stud/erlang_programs/inets_proj"}, {document_root,"./htdocs"}, {script_alias, {"/cgi-bin/", "/Users/7stud/erlang_programs/inets_proj/cgi-bin/"} }, {erl_script_alias, {"/cgi-bin/example", [httpd_example]} }, {erl_script_nocache, true}, {error_log, "./errors.log"},

inets httpd: Can't get simple esi script to work

南楼画角 提交于 2020-01-06 11:47:20
问题 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"}, {server_root,"/Users/7stud/erlang_programs/inets_proj"}, {document_root,"./htdocs"}, {script_alias, {"/cgi-bin/", "/Users/7stud/erlang_programs/inets_proj/cgi-bin/"} }, {erl_script_alias, {"/cgi-bin/example", [httpd_example]} }, {erl_script_nocache, true}, {error_log, "./errors.log"},

inets httpd: Can't get simple esi script to work

一笑奈何 提交于 2020-01-06 11:46:08
问题 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"}, {server_root,"/Users/7stud/erlang_programs/inets_proj"}, {document_root,"./htdocs"}, {script_alias, {"/cgi-bin/", "/Users/7stud/erlang_programs/inets_proj/cgi-bin/"} }, {erl_script_alias, {"/cgi-bin/example", [httpd_example]} }, {erl_script_nocache, true}, {error_log, "./errors.log"},

Elixir - problems with https URLs

只谈情不闲聊 提交于 2019-12-30 08:29:25
问题 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 HTTPotion: HTTPotion.start HTTPotion.get("https://api.github.com") With :inets: :inets.start :ssl.start :httpc.request('https://api.github.com') In both cases I get a giant stacktrace that essential says there is a bad match somewhere and that a state machine is terminating. I don't get this when

Erlang: when to perform `inets:start()`?

独自空忆成欢 提交于 2019-12-20 01:46:47
问题 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 : the answer cannot be to the tune " use a boot file " , please. 回答1: inets is a "stand-alone" Erlang application; inets:start() is just an alias to application:start(inets) . I guess the answer pretty much depends on how you maintain your code. If