Beispiel #1
0
 public HttpRedirectEventArgs(string[] requestHeader, int statusCode, HttpResponseHeader responseHeader, string[] responseText, string method, bool canRedirect, bool handled)
 {
     this.requestHeader  = requestHeader;
     this.statusCode     = statusCode;
     this.responseHeader = responseHeader;
     this.responseText   = responseText;
     this.method         = method;
     this.canRedirect    = canRedirect;
     this.handled        = handled;
 }
Beispiel #2
0
 public Http()
 {
     responseHeader     = new HttpResponseHeader();
     cookies            = new CookieList();
     proxySettings      = new HttpProxySettings();
     url                = new UrlParser();
     httpVersion        = HttpVersion.Http1_1;
     authenticationType = AuthenticationType.AutoDetect;
     userAgent          = "Mozilla/4.0 (compatible; Clever Internet Suite 6.1)";
     keepConnection     = true;
     allowCaching       = true;
     allowRedirects     = true;
     allowCookies       = true;
     allowCompression   = true;
     maxRedirects       = 15;
     maxAuthRetries     = 4;
     userName           = string.Empty;
     password           = string.Empty;
 }