Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Proxy Capability #46

Open
wiebersk opened this issue Feb 13, 2015 · 0 comments
Open

Web Proxy Capability #46

wiebersk opened this issue Feb 13, 2015 · 0 comments

Comments

@wiebersk
Copy link

I was having problems using Ruby 1.9.3 connecting to SalesForce using this gem. It looks like Net::HTTP.new takes different sets of arguments if a proxy is needed so I modified the https method in the SalesforceBulkApi::Connection class to the following:

def https(host)
      req = Net::HTTP.new(host, 443, @proxy_url, @proxy_port, @proxy_user, @proxy_pass)
      req.use_ssl = true
      req.verify_mode = OpenSSL::SSL::VERIFY_NONE
      req
 end

This seemed to fix the problem for me but I wasn't sure how you wanted this worked into the Connection class. I was thinking of setting proxy variables in the connection from the Restforce/Database.com client if the proxy_uri option is set. If you think this is a decent approach, I'll work it up and send in a PR for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant