httpwebrequest是.net framework中的方法,支持Cookies,Session等,这个我用过
Microsoft.XMLHTTP是一个独立的组件,可以在js等各种语言里调用,这个没太用过就不评论了。如果你想用httpwebrequest的话,我这有封装好的类库和源代码,简化了很多操作
http://blog.zhaoyu.me/archives/142.shtmlHTTPRequest request = new HTTPRequest();
request.DomainUrl = "http://www.zhaoyu.me"; 
string s = reqeust.GetData("/default.htm"); //Get方法
string t = reqeust.PostData("/login", "username=xxx&password=xxx"); //Post方法
request.RefreshCookies(); //刷新当前Cookies和Session