Proxy 如何为“httpc”库设置带有用户名和密码的代理?

Proxy 如何为“httpc”库设置带有用户名和密码的代理?,proxy,erlang,elixir,httpc,Proxy,Erlang,Elixir,Httpc,我尝试了以下方法但没有成功: :httpc.set_options( proxy: {{'proxy.int.mycompany.com', 8080}, ['localhost'], proxy_auth: {'developer', 'developer'}}) 及 需要一个proplist :httpc.set\u选项( 代理:{{'proxy.int.mycompany.com',8080},['localhost']}, 代理验证:{'developer','developer'}

我尝试了以下方法但没有成功:

:httpc.set_options( proxy: {{'proxy.int.mycompany.com', 8080}, ['localhost'], proxy_auth: {'developer', 'developer'}})

需要一个proplist

:httpc.set\u选项(
代理:{{'proxy.int.mycompany.com',8080},['localhost']},
代理验证:{'developer','developer'}
)

我试过了。它给出了
{:error,{:not_an_选项,{:proxy_auth,{'developer','developer'}}}}
错误。看起来您只能在:httpc.request函数中设置proxy_auth。是的,我也这么认为。谢谢你的确认。
:httpc.set_options(proxy:  { {'proxy.int.mycompany.com', 8080}, ['localhost'], {'proxy_auth', 'developer', 'developer'}})