Exemplo n.º 1
0
 public HttpItem()
 {
     KeepAlive         = true;
     Connectionlimit   = 1024;
     ResultCookieType  = ResultCookieType.String;
     Expect100Continue = true;
     Header            = new WebHeaderCollection();
     ResultType        = ResultType.String;
     Allowautoredirect = false;
     IsToLower         = false;
     PostDataType      = PostDataType.String;
     UserAgent         = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)";
     Accept            = "text/html, application/xhtml+xml, */*";
     ContentType       = "text/html";
     Method            = "GET";
 }
Exemplo n.º 2
0
 public void Initdata()
 {
     _URL = string.Empty;
     _Method = "GET";
     _Timeout = 100000;
     _ReadWriteTimeout = 30000;
     _KeepAlive = true;
     _Accept = "text/html, application/xhtml+xml, */*";
     _ContentType = "text/html";
     _UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)";
     _Encoding = null;
     _PostDataType = PostDataType.String;
     _Postdata = string.Empty;
     _PostdataByte = null;
     _WebProxy = null;
     cookiecollection = null;
     _Cookie = string.Empty;
     _Referer = string.Empty;
     _CerPath = string.Empty;
     isToLower = false;
     allowautoredirect = false;
     connectionlimit = 1024;
     proxyusername = string.Empty;
     proxypwd = string.Empty;
     proxyip = string.Empty;
     resulttype = ResultType.String;
     header.Clear();// = new WebHeaderCollection();
     _ProtocolVersion = System.Net.HttpVersion.Version11;
     _expect100continue = true;
     _ClentCertificates = null;
     _PostEncoding = Encoding.Default;
     _ResultCookieType = ResultCookieType.String;
     _ICredentials = CredentialCache.DefaultCredentials;
 }