开发者

session problem in using WebRequest and WebResponse

开发者 https://www.devze.com 2022-12-24 19:51 出处:网络
i have created an application with the help of webreque开发者_如何学编程st and webresponse . when i try to log in to yahoo i succeed. after that i open the next page and i get the login page again by

i have created an application with the help of webreque开发者_如何学编程st and webresponse . when i try to log in to yahoo i succeed. after that i open the next page and i get the login page again by the response. How can I fix this?


If I'd have to guess (which I do, given the current state of the question), I'd say you have neglected to support cookies in your request.


I think you already answered your own question, almost anyway (you guessed this was session-related). You need to keep track of the cookies that the initial login request sets, and send those cookies back on subsequent requests.

0

精彩评论

暂无评论...
验证码 换一张
取 消