Apr-20-2020, 09:04 PM
Hi,
I'm using the requests package to check sites for connectivity. 2 of the sites require credentials, and 2 don't.
One of the sites that require credentials, works fine, it returns a 200. The other one returns a 401 Unauthorized.
Both sites present no problem, when logging in via the browser.
Any suggestions about what I can try next?
By the way, is there a third party tool - open source or commercial - that can be used for testing connectivity when developing modules like these? Like a Ping enhancement, command line or gui.
I'm using the requests package to check sites for connectivity. 2 of the sites require credentials, and 2 don't.
One of the sites that require credentials, works fine, it returns a 200. The other one returns a 401 Unauthorized.
Both sites present no problem, when logging in via the browser.
request = requests.get(url,timeout=30, verify = False, auth = HTTPDigestAuth( id, pw ))I've also tried Basic Authentication, but still get the 401 Unauthorized.
Any suggestions about what I can try next?
By the way, is there a third party tool - open source or commercial - that can be used for testing connectivity when developing modules like these? Like a Ping enhancement, command line or gui.