紧急提问:怎么样用http/get方法访问一个需要Request username和password 的URL*******************紧急
如题.
我要访问对方提供的一个地址以获得返回的xml.
对方给我的代码是java的,其中有:
HttpClient client = new HttpClient();
client.getState().setCredentials(
new AuthScope("localhost", 8080, null),
new UsernamePasswordCredentials(username, password)
);
他用java里的httpClient,我在c#里该怎么做?
用webrequest么 ?那怎么设置用户/密码?