摘要: 这两天用c# 写了一个自动登入网页的小工具。使用的是发送webrequest的方式。首先,使用抓包工具fiddler抓取登入页面时发送的request。通过抓包工具,能够获取登入页面时发送的请求,包括以下内容:request urlrequest ContentTyperequest cookierequest contentTyperequest userAgentrequest methodpost data 等,在代码中用以上数据实例化一个HttpWebRequest对象,再把request发送出去即可。下面是代码 string url = "https://10.1.1.1: 阅读全文
posted @ 2013-07-18 17:40 月光-日光海岸 阅读(584) 评论(0) 推荐(0) 编辑