HttpClient 4.2, Basic Authentication, and AuthScope
问题 I have an application connecting to sites that require basic authentication. The sites are provided at run time and not known at compile time. I am using HttpClient 4.2. I am not sure if the code below is how I am supposed to specify basic authentication, but the documentation would suggest it is. However, I don't know what to pass in the constructor of AuthScope . I had thought that a null parameter meant that the credentials supplied should be used for all URLs, but it throws a