|
c#能不能直接发送抓取到的post包?
比如下面一个完整的post,保存到txt或者一个文件里面。能不能直接读取发送。而不用进行各个属性的拆分写到代码里面再执行呢?- POST /member/login.jhtml HTTP/1.1
- x-requested-with: XMLHttpRequest
- Accept-Language: zh-CN,zh;q=0.5
- Referer: https://login.taobao.com/member/login.jhtml?redirectURL=http%3A%2F%2Ftrade.taobao.com%2Ftrade%2Fitemlist%2Flist_bought_items.htm%3Fspm%3D1.6659421.754894813.2.UEg4rT
- Accept: application/json, text/javascript, */*; q=0.01
- Content-Type: application/x-www-form-urlencoded; charset=UTF-8
- Accept-Encoding: gzip, deflate
- User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
- Host: login.taobao.com
- Content-Length: 866
- Connection: Keep-Alive
- Cache-Control: no-cache
- Cookie: _umdata=C7D57BC2815F78898A36C87DBBE3A652FDD09C6E6F58C23D16C721998EDE9B9F19814A673049657833A031C607C3FF3437D7B2CEA15EDDF38928995818726DA3DE442B17CBA0C754; cna=Nf/hCk23YnUCAXT8ReNv90Q9; t=cd4692fa5cb7078b508ab6af8b44a5f1; tg=0; _cc_=UIHiLt3xSw%3D%3D; tracknick=vip%5Cu57DF%5Cu540D%5Cu4E13%5Cu5356%5Cu5E97; mt=cp=0&np=&ci=1_1; lzstat_uv=35620685523502860038|2738597@878758@2800965@2735862@2735864@2581762; l=vip%E5%9F%9F%E5%90%8D%E4%B8%93%E5%8D%96%E5%BA%97::1382205381487::11; x=e%3D1%26p%3D*%26s%3D0%26c%3D0%26f%3D0%26g%3D0%26t%3D0; miid=2676768768531444516; uc3=nk2=Fb7pre5G5cjY%2B2fm9Q%3D%3D&id2=UoH7I207Ssw%2F&vt3=F8dHqKostwpXXZKQ13k%3D&lg2=URm48syIIVrSKA%3D%3D; ck1=; lgc=vip%5Cu57DF%5Cu540D%5Cu4E13%5Cu5356%5Cu5E97; cookie2=621b47d9ea9b34084d82002547af4d3c; uc1=cookie14=UoLU6ahvDYcrdg%3D%3D; v=0; lid=vip%E5%9F%9F%E5%90%8D%E4%B8%93%E5%8D%96%E5%BA%97; lc=UIX8DKkNpmx%2Btl8azaCv3zzs
- TPL_username=%E5%9F%9F%E5%90%8D%E4%B8%93%E5%8D%96%E5%BA%97&ChuJiYuTag=ChuJiYuTag&TPL_password=jielianyue77&TPL_checkcode=&need_check_code=&loginsite=0&newlogin=1&TPL_redirect_url=http%3A%2F%2Ftrade.taobao.com%2Ftrade%2Fitemlist%2Flist_bought_items.htm%3Fspm%3D1.6659421.754894813.2.UEg4rT&from=tb&fc=default&style=default&css_style=&tid=XOR_1_000000000000000000000000000000_63584654430A74030973037F&support=000001&CtrlVersion=1%2C0%2C0%2C7&loginType=3&minititle=&minipara=&umto=NaN&pstrong=2&llnick=&sign=&need_sign=&isIgnore=&full_redirect=&popid=&callback=1&guf=¬_duplite_str=&need_user_id=&poy=&gvfdcname=10&gvfdcre=687474703A2F2F7777772E74616F62616F2E636F6D2F&from_encoding=&sub=&oslanguage=&sr=&osVer=&naviVer=&qstr=redirectURL%3Dhttp%253A%252F%252Ftrade.taobao.com%252Ftrade%252Fitemlist%252Flist_bought_items.htm%253Fspm%253D1.6659421.754894813.2.UEg4rT
复制代码 |
|