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

Support for proxies via requests #486

Open
msbentley opened this issue Sep 11, 2023 · 2 comments
Open

Support for proxies via requests #486

msbentley opened this issue Sep 11, 2023 · 2 comments

Comments

@msbentley
Copy link

This may already be possible, but I finding it in the docs - is there support to pass the "proxies" keyword through pyvo to requests, in order to use e.g. SOCKS proxies to access servers behind firewalls etc.?

(use case - I want to test services running on development TAP servers, which can most easily be access through an SSH tunnel/SOCKS5 proxy - this functionality is built into requests, so I think it's just passing the relevant parameter through pyvo)

@andamian
Copy link
Contributor

@msbentley - All the services, including TAPService accept a session in the constructor. I suspect you could create a requests.Session, set it up with your proxy info and use it to instance PyVO services. I haven't tried it myself, but please let us know if it does the trick.

@bsipocz
Copy link
Member

bsipocz commented Sep 11, 2023

If it works, please consider opening a PR and adding a section on it in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants