I want to make an https request call from node.js, using the standar https Client. But I cannot reach the remote server directly from my network and need to go through a proxy.
How do I tell node.js to use the proxy? I tried option as following the post
{ path : 'https://api.xxx.com:8081/token';
host : 'proxy-us.xxxx.com';
port : 8082;
method : POST_METHOD;
headers : {
'host': "api.xxx.com:8081"
}
But never reached