Downloader
Downloader copied to clipboard
Downloader support socks5 proxy
Do Downloader support socks5 proxy? How I do use socks5 proxy?
Hi @mnt-github,
You can add your proxy config inside the DownloadConfiguration object like this:
var config = new DownloadConfiguration {
ParallelDownload = true,
ParallelCount = 8,
Timeout = 3000,
RequestConfiguration =
{
// config and customize request headers
Accept = "*/*",
CookieContainer = cookies,
Proxy = new WebProxy(new Uri($"socks5://127.0.0.1:9050"))
}
};
Thanks @bezzad. Which .NET Framework version does the above example work on? I'm working on 4.7.2. Downloader don't recognize socks5 proxy.
@mnt-github .Net 4.5.2 and above and all of .Net Core versions