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

c# stocket http post 问题?

这个是数据流。
 Encoding.Default.GetString(Buffer, 0, Ret);

"POST http://tbfarm.elex-tech.com/myfarm/data/gateway.php HTTP/1.0\r\nAccept: */*\r\nAccept-Language: zh-CN\r\nReferer: http://tbfarm.elex-tech.com/myfarm//static/swf/v1028/taobao.swf?v=2\r\nx-flash-version: 10,0,22,87\r\nContent-Type: application/x-amf\r\nContent-Length: 168\r\nPragma: no-cache\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.1)\r\nHost: tbfarm.elex-tech.com\r\nProxy-Connection: Keep-Alive\r\n\r\n\0\0\0\0\0\tuser.seed\0/1\0\0\0?\0\0\0\n\v\tnameauthcode30884206farmuid2143871\titem\ndata_id儞硷item_id5l\vzh-cnkA7ee2a1e4b8b1dd3131ace10354c55885t1262519971\r\n"

HTTP 报文:

POST http://tbfarm.elex-tech.com/myfarm/data/gateway.php HTTP/1.0
Accept: */*
Accept-Language: zh-CN
Referer: http://tbfarm.elex-tech.com/myfarm//static/swf/v1028/taobao.swf?v=2
x-flash-version: 10,0,22,87
Content-Type: application/x-amf
Content-Length: 168
Pragma: no-cache
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.1)
Host: tbfarm.elex-tech.com
Proxy-Connection: Keep-Alive

用c# Stocket 连接这个游戏一直不成功,高手帮忙处理下。
--------------------编程问答-------------------- \r\n\r\n\0\0\0\0\0\tuser.seed\0/1\0\0\0?\0\0\0\n\v\tnameauthcode30884206farmuid2143871\titem\ndata_id儞硷item_id5l\vzh-cnkA7ee2a1e4b8b1dd3131ace10354c55885t1262519971\r\n" 不知道这里是什么?好像乱码? --------------------编程问答-------------------- 看不懂 --------------------编程问答-------------------- 改用utf-8编码试试 --------------------编程问答-------------------- 请参考:
http://blog.csdn.net/ccaakkee/archive/2008/01/06/2027825.aspx
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,