public ExtendedWebClient(int timeout = -1, CookieContainer cookieJar = null, String userAgent = null)
{
if (timeout > 0)
{
this.Timeout = timeout;
}
else
{
this.Timeout = Properties.Settings.Default.Timeout;
if (this.Timeout < 0)
this.Timeout = 60000;
}
if (cookieJar != null)
{
// replace old cookie jar
ExtendedWebClient.CookieJar = cookieJar;
}
if (userAgent != null)
{
// replace user agent
this.UserAgent = userAgent;
}
}