pycsco
pycsco copied to clipboard
Facts and features
I was experimenting with the way the http connection is done. This uses urllib2 built in for 401 auth, and allows the cookie to be sent in subsequent requests.
https://gist.github.com/RNanney/60ecc1a82d03106b256e
The reason this came about is to try and account for intermittent connectivity to tacacs servers. The way it is currently if a 401 is returned the host will drop out. With the built in method it will be retried 5 times before failing.