最近在做一个这样的程序,就是用FluorineFx中netConnection做请求客户端
代码如下: _netConnection = new NetConnection();
_netConnection.CookieContainer.Add(new Cookie("51632_expires", expires, "/", "www.king-club.cn"));
_netConnection.ObjectEncoding = FluorineFx.ObjectEncoding.AMF3;
_netConnection.Connect("http://www.king-club.cn/gateway/");
_netConnection.NetStatus += new NetStatusHandler(_netConnection_NetStatus);
_netConnection.Call("service.getNewsAMF", new GetCustomersHandler(), new object[] { 44,447 });
我想实现的只是想在_netConnection.Call的时候,让这个请求带有Cookies,但是:
_netConnection.CookieContainer.Add(new Cookie("51632_expires", expires, "/", "www.king-club.cn"));
这样加进去的没有任何作用,运行代码,可以通过,可以请求,但是就是不带有Cookies大家有什么别的解决方法吗?谢谢~
代码如下: _netConnection = new NetConnection();
_netConnection.CookieContainer.Add(new Cookie("51632_expires", expires, "/", "www.king-club.cn"));
_netConnection.ObjectEncoding = FluorineFx.ObjectEncoding.AMF3;
_netConnection.Connect("http://www.king-club.cn/gateway/");
_netConnection.NetStatus += new NetStatusHandler(_netConnection_NetStatus);
_netConnection.Call("service.getNewsAMF", new GetCustomersHandler(), new object[] { 44,447 });
我想实现的只是想在_netConnection.Call的时候,让这个请求带有Cookies,但是:
_netConnection.CookieContainer.Add(new Cookie("51632_expires", expires, "/", "www.king-club.cn"));
这样加进去的没有任何作用,运行代码,可以通过,可以请求,但是就是不带有Cookies大家有什么别的解决方法吗?谢谢~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货