模拟登陆
发布时间:2022-11-23 14:13:33 来源:文档文库
小
中
大
字号:
httpwebrequest模拟登录获取cookies2个类,一个基类,一个构建头信息调用类关于如何获取到post中的内容,你之需要用http抓包工具把你与目标网站的请求信息抓下来后,打开分析下按照抓下来的包中的数据进行构建就行了usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Net;usingSystem.IO;namespacebot{publicclassHtml{//////httpwebrequest类中的一些属性的集合///publicstructRequestPPT{privatestringstrAccept;//////获取或设置request类中的Accept属性///用以设置接受的文件类型///publicstringAccept{get{