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

How to connect via a corporate proxy #15

Open
SignifyLeo opened this issue Nov 14, 2018 · 1 comment
Open

How to connect via a corporate proxy #15

SignifyLeo opened this issue Nov 14, 2018 · 1 comment

Comments

@SignifyLeo
Copy link

We want to run our Python scripts on a company server and connect to the Usabilla API via our corporate proxy. Although having found and read the similar question #35 for JS, it is not clear how to enable this with Python.

@fooku18
Copy link

fooku18 commented Jul 29, 2019

the client queries the api with urllib, so setting the proxy in your environment variables should work. Something like this will do it:
import os os.environ['http_proxy'] = '{YOUR_CORPORATE_HTTP_PROXY}' os.environ['https_proxy'] = '{YOUR_CORPORATE_HTTPS_PROXY}'

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

2 participants