Example #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="WebClientEx"/> class.
 /// </summary>
 /// <param name="allowAutoRedirect">
 ///     <see langword="true"/> to indicate that the request should follow
 ///     redirection responses; otherwise, <see langword="false"/>.
 /// </param>
 /// <param name="cookieContainer">
 ///     The cookies associated with the request.
 /// </param>
 /// <param name="timeout">
 ///     The time-out value in milliseconds for the
 ///     <see cref="HttpWebRequest.GetResponse()"/> and
 ///     <see cref="HttpWebRequest.GetRequestStream()"/> methods.
 /// </param>
 public WebClientEx(bool allowAutoRedirect = true, CookieContainer cookieContainer = null, int timeout = 60000)
 {
     NetEx.EnsureDefaultSecurityProtocol();
     AllowAutoRedirect = allowAutoRedirect;
     CookieContainer   = cookieContainer;
     Timeout           = timeout;
 }