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

fixes https login issue and proxies, urllib2 handler flexibility: #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Jul 31, 2015

create authentication object for each repo
auth=GittleAuth(https={"repo":repo_url,"username":username,"password":password})

for proxy connection:
auth=GittleAuth(proxies={'http': '127.0.0.1',"proxy_type":"proxyurl"})

check: https://docs.python.org/2/library/urllib2.html#urllib2.ProxyHandler for details

if you need to use socks proxy you need to create your own handler python does not have by default or you can use pysocks.
https://github.com/Anorov/PySocks

for any other fancy http issue create your handler and have fun.

GittleAuth object is not the best place to implement urllib2 handlers, sorry if i mess up with your interfaces. you can copy it to an appropriate place.

fixes https login issue and proxies, urllib handler flexiblity:

create authentication object for each repo
auth=GittleAuth(https={"repo":repo_url,"username":username,"password":password})

for proxy connection:
auth=GittleAuth(proxies={'http': '127.0.0.1',"proxy_type":"proxyurl"})

check: https://docs.python.org/2/library/urllib2.html#urllib2.ProxyHandler for details

if you need to use tcp proxy you need to create your own proxy handler or you can use pysocks.
https://github.com/Anorov/PySocks

for any other fancy http issue create your handler and have fun.
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

Successfully merging this pull request may close these issues.

1 participant