Http fake server
Make a fake http server. It'll answer with 401/unauthorized to any request and store the host, authentication and url for every request.
Make a fake http server. It'll answer with 401/unauthorized to any request and store the host, authentication and url for every request.