proxy authentication in node.js with module request
问题 I'm trying to use the module request in my node.js app, and I need to configure proxy settings with authentication. My settings are something like this: proxy:{ host:"proxy.foo.com", port:8080, user:"proxyuser", password:"123" } How can i set my proxy configuration when i make a request? Could someone give me an example? thanks 回答1: Here is an example of how to configure (https://github.com/mikeal/request/issues/894): //...some stuff to get my proxy config (credentials, host and port) var