Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Working with proxy #161

Open
dhkrkh opened this issue Jun 14, 2023 · 2 comments
Open

Working with proxy #161

dhkrkh opened this issue Jun 14, 2023 · 2 comments

Comments

@dhkrkh
Copy link

dhkrkh commented Jun 14, 2023

My organization's proxy is blocking file downloads from Python. When downloading files from CDDIS using "requests" library I am able to bypass proxy using the following command

import requests

proxies = {
'http': 'http://proxy.example.com:8080',
'https': 'http://secureproxy.example.com:8090',
}

url = 'url://to.cddis.com/file/location'

response = requests.post(url, proxies=proxies)

Is there any possibility of allowing such a proxy variable with podaacpy library?
Thank you

@lewismc
Copy link
Member

lewismc commented Aug 16, 2023

Hi @dhkrkh thanks for registering the issue.
You could likely augment the configuration in podaac.ini to accomplish this.
If you are able to do so, please submit a pull request. I will review it. Thanks

@lewismc
Copy link
Member

lewismc commented Aug 16, 2023

Also, apologies for the late response. I have been away for a while.

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

No branches or pull requests

2 participants