摘要: 找了 很久都发现不出问题,最后终于发现原来是微软的一个BUG 用HttpWebRequest发送请求,附上了CookieContainer(CookieContainer里面确定已经包含了所有需要的 Cookie),但是当发送请求后某些Cookie并没有发送出去,调试了两天,一直觉得是请求的网站设了什么古怪的限制,使请求老是发送不成功,最后用 SocketSniff抓包发现少发送了几个Cookie(因为这些cookie涉及到几个子域名),检查CookieContainer,里面确实有这 几个Cookie,最后只好反编译HttpWebRequest,在类CookieModule里发现方法OnSe 阅读全文
posted @ 2011-07-19 14:14 PointNet 阅读(3164) 评论(3) 推荐(1) 编辑
摘要: CookieContainer has a bug on handling domain name here https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=478521 and Microsoft decided not to fix it in .NET 2.0/3.0/3.5. I want to inspect the problem and want to do my own hack to solve this issue in .NET earlier than 4. 阅读全文
posted @ 2011-07-19 14:04 PointNet 阅读(1591) 评论(0) 推荐(0) 编辑