Retaining authorization header in RestSharp during redirects
问题 I am using RestSharp to make a GET api call. The api call is authenticated through HTTP Basic authentication by passing the authorization header. The server redirects the api call with a status code 307. My client code does handle the redirects but the authorization header is not passed to this redirected api call. This is done for valid reasons as mentioned here. Hence I do get an unauthorized error. How can I configure the RestClient to restore the authorization header? var client = new