piranna / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Enhancement request: proxy #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice, in certain situations, to be able to use a proxy to access an 
object.  Please let FS support --proxy-host, --proxy-port, --proxy-user, 
--proxy-password.

Cheers.

Original issue reported on code.google.com by kl...@seistrup.dk on 19 Jun 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Could you clarify what type of proxy you're talking about, and specifically 
which FS(es) you think should have proxy support added?

Original comment by gc...@loowis.durge.org on 22 Jun 2013 at 12:11

GoogleCodeExporter commented 9 years ago
I am specifically thinking about a HTTP proxy (e.g. fscat|fsinfo 
http://example.org/).

Original comment by kl...@seistrup.dk on 22 Jun 2013 at 12:26

GoogleCodeExporter commented 9 years ago
In that case it's HTTPFS that needs proxy support. However HTTPFS internally 
uses urllib2.urlopen, and according to the documentation it should work 
automatically with proxies if the relevant environment variable is set - 
http://docs.python.org/2/library/urllib2.html#urllib2.urlopen

Although if your proxy needs authentication, it'll need some small 
modifications to HTTPFS, as well as the required 'plumbing' to 
fscat/fsinfo/etc. - 
http://bytes.com/topic/python/answers/22918-proxy-authentication-using-urllib2

Original comment by gc...@loowis.durge.org on 22 Jun 2013 at 12:49

GoogleCodeExporter commented 9 years ago
This looks great, thanks for the link.

Original comment by kl...@seistrup.dk on 22 Jun 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Was the information in the docs a good enough solution?

Original comment by willmcgugan on 9 Sep 2013 at 8:46

GoogleCodeExporter commented 9 years ago
Yes, it was fine.  Cheers.

Original comment by kl...@seistrup.dk on 10 Sep 2013 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by willmcgugan on 10 Sep 2013 at 8:31