Also, ```Exploit::Remote::HttpClient#send_recv``` is handlign the 401 ```magically```. Maybe it's the place to add the auto handling redirections code, and don't do it on send_request_cgi.