开发者

session problem in using WebRequest and WebResponse

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜