当前位置:编程学习 > C#/ASP.NET >>

求助:C#实现一个WEB分析器(仅有20分相送)

以下为我已经做好的图形界面


现在能够将目标网站的源代码显示在下面的RichTextBox中

还需要实现2、点击POST按钮,模拟实现网站登陆过程

3、点击GET截取目标网站的http协议头,显示在RichTextBox,类似以下形式:


POST /111.asp HTTP/1.1 
Accept: */* 
Referer: http://111.222.333/hello.asp 
Accept-Language: zh-cn 
Content-Type: application/x-www-form-urlencoded 
Accept-Encoding: gzip, deflate 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;  Embedded Web Browser from: http://bsalsa.com/; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) 
Host: abc.def.efg 
Content-Length: 8 
Connection: Keep-Alive 
Cache-Control: no-cache 
Cookie: pEJ_cookietime=2592001 

teamid=7&input_code=m1zw

对于2和3这两步不知道如何具体实现

望大伙赐教 --------------------编程问答-------------------- 顶个
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,