本机上存在baidu的cookie,但是
HttpWebRequest requestAgent = (HttpWebRequest)WebRequest.Create("http://www.baidu.com/");
这个时候requestAgent.cookieContainer为什么为NULL???
在线等。。,,,
13 个解决方案
#1
结贴100%。。。。。。。为啥木有人呢????
#2
HttpWebRequest request = WebRequest.Create("http://www.baidu.com/") as HttpWebRequest
这样子试下
这样子试下

#3

#4
这个是一样的。。。。木有区别。。。。
#5

我不是很懂啊 CSDN 好像有这样的帖子 直接拿你的问题搜一下应该有
#6
多谢哥们帮顶。。。。。CSDN的帖子我都看了。。木有。。。
#7
http://topic.csdn.net/u/20110314/15/d3362e1a-c224-414b-b05f-feb853198779.html 这里有个

#8
wc.ResponseHeaders["Set-Cookie"]
#9
哎 糾結的時候總要我來搞定.
以下是我給你的代碼:
以下是我給你的代碼:
int a=1;
string b="b";
#10
哦 看错问题了
#11
百度的cookie...
你換一下,換一個www.csdn.net的調試一下看看呢?
你換一下,換一個www.csdn.net的調試一下看看呢?
#12
这个是webbrower吧?
#13
那个是获取返回的cookie
用这个System.Windows.Application.GetCookie
用这个System.Windows.Application.GetCookie
#1
结贴100%。。。。。。。为啥木有人呢????
#2
HttpWebRequest request = WebRequest.Create("http://www.baidu.com/") as HttpWebRequest
这样子试下
这样子试下

#3

#4
这个是一样的。。。。木有区别。。。。
#5

我不是很懂啊 CSDN 好像有这样的帖子 直接拿你的问题搜一下应该有
#6
多谢哥们帮顶。。。。。CSDN的帖子我都看了。。木有。。。
#7
http://topic.csdn.net/u/20110314/15/d3362e1a-c224-414b-b05f-feb853198779.html 这里有个

#8
wc.ResponseHeaders["Set-Cookie"]
#9
哎 糾結的時候總要我來搞定.
以下是我給你的代碼:
以下是我給你的代碼:
int a=1;
string b="b";
#10
哦 看错问题了
#11
百度的cookie...
你換一下,換一個www.csdn.net的調試一下看看呢?
你換一下,換一個www.csdn.net的調試一下看看呢?
#12
这个是webbrower吧?
#13
那个是获取返回的cookie
用这个System.Windows.Application.GetCookie
用这个System.Windows.Application.GetCookie