在WinForm中通过HTTP协议向服务器端上传文件(19) this.oCookies = Response.Cookies; } else { // ** If we already have cookies update the list foreach (Cookie oRespCookie in Response.Cookies) { bool bMatch = false; foreach(Cookie oReqCookie in this.oCookies) { if (oReqCookie.Name == oRespCookie.Name) { oReqCookie.Value = oRespCookie.Name; bMatch = true; break; // } } // for each ReqCookies if (!bMatch) this.oCookies.Add(oRespCookie); } // for each Response.Cookies } // this.Cookies == null } // if Response.Cookie.Count > 0 } // if this.bHandleCookies = 0
// *** Save the response object for external Access this.oWebResponse = Response;