rForce behind a proxy
Closed this issue · 3 comments
Hi,
Correct me if i am wrong but rForce doesn't work behind a proxy ? I created several ruby scripts to get data from salesforce and it works when i run the scripts at home but when i run the same scripts connected through my professional lan, the same scripts doesn't work anymore.
I am almost sure that a lot of potential developers are suppose to use this gem at work.
Net::HTTP.new(@url.host, @url.port
By looking at row 86 into binding.rb, i can see the following piece of coding:
I guess, it is required to include something like : Net::HTTP::Proxy....but it mean i will change to source code.
Do you know how to properly bypass this limitation ?
Thanks a lot in advance
Johnny Baillargeaux (from France)
Hello, Johnny.
I don't have a proxy to test with, but if you'd like to experiment, you could change line 86 of binding.rb
from this:
@server = Net::HTTP.new(@url.host, @url.port)
to this:
@server = Net::HTTP.Proxy('http://someproxy.example.com', your_proxy_port).new(@url.host, @url.port)
If this works for you, I can make this a little more official in RForce.
ok i will try and post an update. Thanks!
I confirm it's ok. Thanks a lot!!