This is the module I created for this:
module ProximoParty PROXIMO = URI.parse(ENV['PROXIMO_URL']) def self.included(base) base.send(:include, HTTParty) base.http_proxy(PROXIMO.host, 80, PROXIMO.user, PROXIMO.password) end end
This uses the PROXIMO URL as it is added to your heroku application when installing the addon. Therefore, you can drop this file into your application and include ProximoParty in your FakeRequest class instead of HTTParty, and it should just work.
It looks like my code does the same thing your code does, but as I understand it, you cannot manually transfer credentials for proximo.
I ran into a similar problem when it didn’t quite work for me right away. I believe the problem was that I was confused because there was a proxy protocol in the proxy URL, but that was only part of the URL username.
In any case, this may or may not help, but please let me know if this happens!
source share