Aug-27-2024, 10:08 PM
I can paste the url into the browser address and get the JSON text; my Windows credentials being used by default. However, my current code produces an error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
Thank you
import requests from requests_negotiate_sspi import HttpNegotiateAuth json_file = 'test.json' url='https://auth.data.co.com/report_auth.php?r=/Region/123/Dept/api/open/form/query/_32wmk?x-filterData=recordID,title,date' response = requests.get(url, auth = HttpNegotiateAuth()) data = response.content with open(json_file, 'wb') as f: f.write(data)Tried requests.post, but same error. If there is a PowerShell method, I'll try that.
Thank you