podaacpy icon indicating copy to clipboard operation
podaacpy copied to clipboard

Working with proxy

Open dhkrkh opened this issue 2 years ago • 2 comments
trafficstars

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

dhkrkh avatar Jun 14 '23 06:06 dhkrkh

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 avatar Aug 16 '23 14:08 lewismc

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

lewismc avatar Aug 16 '23 14:08 lewismc