简体   繁体   English

如何使用“httpc”库的用户名和密码设置代理?

[英]How set proxy with username and password for `httpc` library?

I've tried the following without success:我尝试了以下但没有成功:

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

And

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

:httpc.set_options/1 expects a proplist. :httpc.set_options/1需要一个 proplist。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM