HttpClient client = new HttpClient();
UsernamePasswordCredentials creds = new UsernamePasswordCredentials(userData.id, userData.password); client.getState().setProxyCredentials(AuthScope.ANY, creds);
时间: 2024-11-06 07:14:08
HttpClient client = new HttpClient();
UsernamePasswordCredentials creds = new UsernamePasswordCredentials(userData.id, userData.password); client.getState().setProxyCredentials(AuthScope.ANY, creds);