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 use the proxy server programmatically? #3

Closed
laruellef opened this issue Jul 14, 2013 · 1 comment
Closed

How to use the proxy server programmatically? #3

laruellef opened this issue Jul 14, 2013 · 1 comment

Comments

@laruellef
Copy link

Tks for contributing this code! :-)
Is it possible to us this as a conventional http proxy and use it via python requests as follows?
import requests
proxies = {
"http": "http://myapp.appspot.com:8080",
"https": "http://myapp.appspot.com:8080",
}
requests.get("http://example.org", proxies=proxies)
I have tried it unsuccessfully...
any pointers?

@bslatkin
Copy link
Owner

Nope, unfortunately it's not possible because of how standard HTTP web proxies work.

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