How to use aria2 in conjunction with a proxy server?

Published on Aug. 22, 2023, 12:19 p.m.

To use aria2 in conjunction with a proxy server, you can use the --http-proxy and --https-proxy flags followed by the URL of the proxy server. Here’s an example command:

aria2c --http-proxy=http://your.proxy.com:8080 --https-proxy=https://your.proxy.com:8080 http://example.com/file.zip

In this example, we’re downloading a file from http://example.com/file.zip using aria2c and passing the --http-proxy and --https-proxy flags with the URL of the proxy server.

Note that if your proxy server requires credentials, you can use the --http-user and --http-passwd flags to specify your username and password, respectively. For example:

aria2c --http-proxy=http://your.proxy.com:8080 --https-proxy=https://your.proxy.com:8080 --http-user=user --http-passwd=password http://example.com/file.zip

I hope that helps! Let me know if you have any further questions or if there’s anything else I can help you with.

Tags: