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
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.
精彩评论