简体   繁体   中英

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(
  proxy: {{'proxy.int.mycompany.com', 8080}, ['localhost']},
  proxy_auth: {'developer', 'developer'}
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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