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

proxy 407 error on exec #26

Open
ghost opened this issue Oct 24, 2013 · 2 comments
Open

proxy 407 error on exec #26

ghost opened this issue Oct 24, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 24, 2013

Here behind the firewall I get a 407 error

The package control works fine behind the firewall, not sure why I'm getting this issue just with the prefixr

@ghost
Copy link
Author

ghost commented Oct 24, 2013

Modifed Prefixr.py as follows line 157 on.

Please advise, or use as a guideline for more robust solution, I added an 'http_proxy' section to user Preferences.sublime-settings, note that its somewhat 'non conformant' in the protocol prefix

"http_proxy" : "user:password@proxyaddress:port"

This seems to work.

        settings = self.view.settings()
        user_proxy = settings.get('http_proxy')
        proxy = urllib2.ProxyHandler({'http': user_proxy})
        opener = urllib2.build_opener(proxy)
        urllib2.install_opener(opener)

        http_file = urllib2.urlopen(request, timeout=self.timeout)
        self.result = http_file.read()
        return

@ghost ghost closed this as completed Oct 24, 2013
@ghost ghost reopened this Oct 24, 2013
@ghost ghost closed this as completed Oct 24, 2013
@ghost ghost reopened this Oct 24, 2013
@ghost
Copy link
Author

ghost commented Oct 24, 2013

needs a permanent fix

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

No branches or pull requests

0 participants