问题描述
比如访问一个网址的HEADER头信息如下:怎么模拟实现发送过程,并接收收到的RESPONSE.(Request-Line):GET/certnet.dll?/55FD71A19687E8F7AD0C9D39E6A3383BE78E7E3B4EAF198706FC7CBA7F2B79AED6FBDC1336378DFAC64CA9C1965B104F6641DC73939FF4D0CE79DA5BD8FE0C2088969AD9B52B056929AC0A511B39C94AF6BF0eea7d2d182d4777bd842d0ba20df185/000020.pdgHTTP/1.1Accept:*/*HDDINFO:2070134265SSAuth:21212121215a429cd8SSRANDOM:121b9b0dBookAuth:627A5929758A25A82A9018E57BBC15C0SSOIAC:b28bb37825f673b43fac1a091ddf19d0e306f5a44d408295SSCT:D342F1A3DFBBC86CE943E8FB478BD6CC3CF075F17137712AC2729C0144FE391C5B96C851DCFC4B38EC826B698975B25C63499B02A0D76EF663E12DA03B0D18858D0D4E6FD6EB9B65FE4DF71A6EEA259AC273611A3CE004AEFDF7CF2A04280D98F1FC3CB37A614205B3B5DE02A89B1BD1DACB5C7ACD7283D72BC0F7080FEFFAB898DF28E454FF0C5D870A75A0F59F094020CFDBCA26ED48BE130FEA172A91BF920424A7C550D342E82C12403B4430A74215ABE8566F60EA1D6F5386016249FF44CF96F00CB65D636B85743B7979850439CBE603AB75D790B509B2170A92DC0BC923CAAB30A2C55D2E57C2AC6E410C56B140EAA05A36197785185A1F9D5567F7C551447F529C63F1DA38628F41510184124B2520A14B212D9363F04365078B2B4A3A21E7BAE985C70ECBB787BF2E9BBB04A276B2C577DF89C4C88FFCA7A72013E651F09A6E6137D65D90B79490A7B0CE5F51E7151F4CE09862E221748AFF468312B856813641BCD5EC75FEF094893D1BD18A3C597C15CFBD196C756E49AF8F106ACB93E638F3D201251B3F545EF6D5DA7B1707012663FC517596EEE78EFB20A5359F3793A6D9D4B7C8CE6B5613991317BC50F64C076A6827396EB7FFCCCEFADAA55D0ECF4E96FF70D83E8ED43BFA813BC8E82BB1EBA5864818B3ACB946ED081FEFF656578898448D1B478D52E26F827E66B8EE3D3CDA6BB87EC03C2BADC2B0750F943513B21FF84682131202A18CBC2FA90D04F4FD579A268EDDB256EAE5349E04DEA6F7DA945CF44E8ED9779FB44B6B20886D4B04843CDD16E1CD8C6C92EE45177179SSUA:SSREADER/3.9.4.0001unRegisterServerID:ExistConnection:CloseUser-Agent:SSREADER/3.9.4.0001unRegisterHost:bfts.5read.comCache-Control:no-cache
解决方案
解决方案二:
访问一个网址之前可以设定,然后通过POST或者GET这些方式访问,实现所谓的发送。如HttpWebRequest.UserAgent接收就是响应,可以用HttpWebRequest.GetResponse().Headers
解决方案三:
水平有限,有提供个实例吗?谢谢!!
解决方案四:
引用2楼26929293的回复:
水平有限,有提供个实例吗?谢谢!!
http://blog.csdn.net/htsnoopy/article/details/7094224足够详细了