Skip to main content
Jim Amster 님이 #Integration에 질문했습니다
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);

  });
답변 1개
  1. 2016년 3월 8일 오후 7:14
    You must be able to specify your proxy server and port.

    If the code is in java, you can do this by these sample codes:

     

    System.setProperty("https.proxyHost", "proxysite.com");

    System.setProperty("https.proxyPort", "8080");

    Also do these for http,ftp, and socks protocols if you would be using these.
0/9000