-
Notifications
You must be signed in to change notification settings - Fork 279
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 support in OWSLib #927
base: master
Are you sure you want to change the base?
Conversation
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
Thanks for this @FilippoPagano. Would you be able to add the For reference, this pull request passes the |
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
Note even without this pull request it should be possible to use proxies by setting environment variables as described at https://docs.python-requests.org/en/latest/user/advanced/#proxies $ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ export ALL_PROXY="socks5://10.10.1.10:3434"
$ python
>>> import requests
>>> requests.get('http://example.org') |
Ye,s but this PR is usefull when you want to specify a proxy for a specific
call, and not at a system level… so your other services can run regularly
Il giorno dom 26 gen 2025 alle 10:47 Seth G ***@***.***> ha
scritto:
… Note even without this pull request it should be possible to use proxies
by setting environment variables as described at
https://docs.python-requests.org/en/latest/user/advanced/#proxies
$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ export ALL_PROXY="socks5://10.10.1.10:3434"
$ python>>> import requests>>> requests.get('http://example.org')
—
Reply to this email directly, view it on GitHub
<#927 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB25KMARZUR2DYO3IHK4TS32MSVJVAVCNFSM6AAAAABH2MOC66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJUGMYDCMRZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Note that you can also set this at the application level without a change to OWSLib: import os
import requests
os.environ['HTTP_PROXY'] = 'http://foo'
print(requests.get('http://example.org')) |
Hello,
I added proxy support for the library.
#512
Let me know
Regards,
Filippo Pagano
Software engineer