我从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}]}}
我需要有关如何使该请求成功完成的建议。