开发者

Web Services and cookie handling

开发者 https://www.devze.com 2023-01-26 20:14 出处:网络
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 anot

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

精彩评论

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