|
在WinForm中通过HTTP协议向服务器端上传文件(12) get { return this.oCookies; } set { this.Cookies = value; } } public HttpWebResponse WebResponse { get { return this.oWebResponse;} set { this.oWebResponse = value; } } public HttpWebRequest WebRequest { get { return this.oWebRequest; } set { this.oWebRequest = value; } } // *** member properties //string cPostBuffer = ""; MemoryStream oPostStream; BinaryWriter oPostData; int nPostMode = 1; int nConnectTimeout = 30; string cUserAgent = "West Wind HTTP .net"; string cUsername = ""; string cPassWord = ""; string cProxyAddress = ""; string cProxyBypass = ""; string cProxyUsername = ""; string cProxyPassWord = ""; bool bThrowExceptions = false; bool bHandleCookies = false; string cErrorMsg = ""; bool bError = false; HttpWebResponse oWebResponse; HttpWebRequest oWebRequest; CookieCollection oCookies; string cMultiPartBoundary = "-----------------------------7cf2a327f01ae"; public void wwHTTP() { // // TODO: Add constrUCtor logic here // } /// <summary>
|