I copied the following code from the inets User's Guide:
$ erl
Erlang/OTP 19 [erts-8.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.2 (abort with ^G)
1> inets:start().
ok
2> httpc:set_options([{proxy, {{"www-proxy.mycompany.com", 8000}, ["localhost"]}}]).
ok
3> {ok, {{Version, 200, ReasonPhrase}, Headers, Body}} = httpc:request("http://www.erlang.org").
* exception error: no match of right hand side value
{error,
{failed_connect,
[{to_address,{"www-proxy.mycompany.com",8000}},
{inet,[inet],etimedout}]}}
I need advice on how to get that request to complete successfully.
This seems to work:
The User's Guide says:
which makes as much sense to me as:
To stop the client, do I just do:
?
Edit: I must have figured out how to stop the server because I did it in this code:
Erlang read post request