You need to sign in to do that
Don't have an account?

How do I access salesforce from behind a proxy using node-salesforce?
I need help specifying the proxy in the code below.
var _this = this;
this.sfConn = new sf.Connection({
loginUrl: 'https://login.salesforce.com'
});
console.log('About to log into salesforce');
this.sfConn.login(username, password, function(error, userInfo) {
if (error) { return console.log(error); }
_this.userInfo = userInfo;
callback(error, userInfo);
});
var _this = this;
this.sfConn = new sf.Connection({
loginUrl: 'https://login.salesforce.com'
});
console.log('About to log into salesforce');
this.sfConn.login(username, password, function(error, userInfo) {
if (error) { return console.log(error); }
_this.userInfo = userInfo;
callback(error, userInfo);
});
If the code is in java, you can do this by these sample codes:
Also do these for http,ftp, and socks protocols if you would be using these.