帮助CookieContainer [英] Help with CookieContainer

查看:88
本文介绍了帮助CookieContainer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其他网站是否可以获取其他网站设置的Cookie?

Is it possible for another website to fetch cookies set by other websites?

 

情景:

有两个网站,A和B.B的内容仅在我登录网站A(B是完全不同的网站)后才可用。我做的是使用HttpWebRequest POST登录网站A(它工作 - 我可以浏览网站A),然后我向网站B发送
a请求,但被告知我没有登录。我正在使用两个请求都使用相同的CookieContainer。 我使用Fiddler记录了流量,发现没有cookie与请求一起发送到第二个网站。

There's two websites, A and B. B's contents are only available once I'm logged in on Website A (B is a completely different website). What I did was log onto Website A using HttpWebRequest POST (and it worked - I can navigate around Website A), then I send a request to Website B but was told I'm not logged in. I'm using the same CookieContainer for both requests. I logged the traffic with Fiddler and found out no cookies are sent with the request to the second website.

 

我已经尝试了很长时间,但我仍然无法找到解决方法..任何帮助都将不胜感激,谢谢! :)

I've been trying for a long time but I still can't find a way around this.. any help would be appreciated, thanks! :)

推荐答案

把它搞砸了,真的需要帮助
Bump this up, really need help


这篇关于帮助CookieContainer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆