This project is archived and is in readonly mode.
ActiveResource & HTTP proxy support
-
Rainer Jung
I like this. I could really need this.
-
Marshall Huss
I was just working on a fix for this. Would it be more desirable to use the environment settings or let it be explicitly set in the ActiveResource model?
-
Marshall Huss
Here's my patch to add proxy support. I made it work as close to the site attribute as possible. In reference to the paste-in-patch, I believe if the user wants to use the environmental http_proxy variable then they can explicitly set it.
class Foo < ActiveResource::Base
self.site = "http://site.local" self.proxy = "http://user:password@proxy.local:10000" endIf you have any suggestions/issues let me know and I can make the changes.
-
Marshall Huss
Found an issue with the patch and it will not work, will submit a new one asap.
-
Jer
This is exactly what I have been looking for! Well done and thanks.
-
John Wunder
Thanks Marshall, this will really help us out at work since we're behind a proxy, been missing it.
-
Brennan Dunn
+1, good patch.
-
David
This is excellent and exactly what I need for work. +1
-
Jay Crossler
Yep, useful. Thanks!
-
Marshall Huss
I added some more tests and fixed a bug.
class Foo < ActiveResource::Base self.site = "http://localhost" self.proxy = "http://user:password@proxy.local:8080" end -
Geoff
+1 on this
I work in one of those lovely corporate settings where this would be really useful.
-
Rizwan Reza
not reproducible
-1 The patch doesn't apply... neither 2-3-stable nor master.
-
Marshall Huss
Now applies cleanly to master
-
Marshall Huss
- Tag changed from active_resource, proxy to active_resource, bugmash, proxy
-
Marshall Huss
Added some more tests.
-
Jeremy Kemper
- State changed from new to committed
- Milestone changed from 2.x to 2.3.4
2-3-stable: 791c3880393c671c3b101ea9b12836070df7a64d
master: 4d1552810f631898c3d7f758454c92ca35a8cb26
-
Marshall Huss
- Tag changed from active_resource, bugmash, proxy to active_resource, proxy
-
Marshall Huss
(from [791c3880393c671c3b101ea9b12836070df7a64d]) HTTP proxy support
[#2133 ActiveResource & HTTP proxy support state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/791c3880393c671c3b101ea9b12836... -
Marshall Huss
(from [4d1552810f631898c3d7f758454c92ca35a8cb26]) HTTP proxy support
[#2133 ActiveResource & HTTP proxy support state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/4d1552810f631898c3d7f758454c92...
