开发者

Web Services and cookie handling

There's an web service and it depends on the cookies sent by the browser for its operations. The service works fine as long as it is being accessed by a browser, but fails when it is accessed by another service or program.

The aspx file that I want to introduce in step 2.a has full access to the original cookies. I need a way so that the cookies in 开发者_C百科2.a are forwarded in step 2.b

(step 3 is not required after 2.a and 2.b are developed )

Thanks

Web Services and cookie handling

Thanks


First, get the cookies to your C# code, somehow.

Second, use the CookieContainer property of your web service proxy to set the cookies to use.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜