pycsco icon indicating copy to clipboard operation
pycsco copied to clipboard

Facts and features

Open RNanney opened this issue 9 years ago • 1 comments

RNanney avatar Sep 28 '15 13:09 RNanney

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.

RNanney avatar Sep 30 '15 15:09 RNanney