Downloader icon indicating copy to clipboard operation
Downloader copied to clipboard

Downloader support socks5 proxy

Open mnt-github opened this issue 2 years ago • 3 comments

Do Downloader support socks5 proxy? How I do use socks5 proxy?

mnt-github avatar Nov 01 '23 06:11 mnt-github

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"))
        }
};

bezzad avatar Nov 02 '23 09:11 bezzad

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 avatar Nov 26 '23 02:11 mnt-github

@mnt-github .Net 4.5.2 and above and all of .Net Core versions

bezzad avatar Nov 26 '23 10:11 bezzad