aria2c.1.txt 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. :man source: Aria2
  5. :man manual: Aria2 Manual
  6. NAME
  7. ----
  8. aria2c - The ultra fast download utility
  9. SYNOPSIS
  10. --------
  11. aria2c ['OPTIONS'] ['URI' | 'MAGNET' | 'TORRENT_FILE' | 'METALINK_FILE']...
  12. DESCRIPTION
  13. -----------
  14. aria2 is a utility for downloading files. The supported protocols are
  15. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  16. multiple sources/protocols and tries to utilize your maximum download
  17. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  18. BitTorrent at the same time, while the data downloaded from
  19. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's
  20. chunk checksums, aria2 automatically validates chunks of data while
  21. downloading a file like BitTorrent.
  22. OPTIONS
  23. -------
  24. Basic Options
  25. ~~~~~~~~~~~~~
  26. *-d*, *--dir*=DIR::
  27. The directory to store the downloaded file.
  28. *-i*, *--input-file*=FILE::
  29. Downloads URIs found in FILE. You can specify multiple URIs for a single
  30. entity: separate URIs on a single line using the TAB character.
  31. Reads input from stdin when '-' is specified.
  32. The additional *out* and *dir* options can be specified after each line of
  33. URIs. This optional line must start with white space(s).
  34. See *Input File* subsection for details.
  35. *-l*, *--log*=LOG::
  36. The file name of the log file. If '-' is specified, log is written to
  37. stdout.
  38. *-j*, *--max-concurrent-downloads*=N::
  39. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  40. torrent and metalink. See also *-s* and *-C* option.
  41. Default: '5'
  42. *-V*, *--check-integrity*[='true'|'false']::
  43. Check file integrity by validating piece hashes.
  44. This option has effect only in BitTorrent and Metalink downloads with
  45. chunk checksums.
  46. Use this option to re-download a damaged portion of a file.
  47. Default: 'false'
  48. *-c*, *--continue*::
  49. Continue downloading a partially downloaded file.
  50. Use this option to resume a download started by a web browser or another
  51. program which downloads files sequentially from the beginning.
  52. Currently this option is only applicable to HTTP(S)/FTP downloads.
  53. *-h*, *--help*[=TAG|KEYWORD]::
  54. The help messages are classified with tags. A tag starts with
  55. "#". For example, type "--help=#http" to get the usage for the
  56. options tagged with "#http". If non-tag word is given, print the
  57. usage for the options whose name includes that word.
  58. Available Values: '#basic', '#advanced', '#http', '#https', '#ftp',
  59. '#metalink', '#bittorrent', '#cookie', '#hook', '#file',
  60. '#xml-rpc', '#experimental', '#all'
  61. Default: '#basic'
  62. HTTP/FTP Options
  63. ~~~~~~~~~~~~~~~~
  64. *--all-proxy*=PROXY::
  65. Use this proxy server for all protocols.
  66. You can override this setting and specify a proxy server for a particular
  67. protocol using *--http-proxy*, *--https-proxy* and *--ftp-proxy* options.
  68. This affects all URLs.
  69. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  70. *--connect-timeout*=SEC::
  71. Set the connect timeout in seconds to establish connection to
  72. HTTP/FTP/proxy server. After the connection is established, this
  73. option makes no effect and *--timeout* option is used instead.
  74. Default: '60'
  75. *--dry-run*[='true'|'false']::
  76. If 'true' is given, aria2 just checks whether the remote file is
  77. available and doesn't download data. This option has effect on
  78. HTTP/FTP download. BitTorrent downloads are canceled if 'true' is
  79. specified. Default: 'false'
  80. *--lowest-speed-limit*=SPEED::
  81. Close connection if download speed is lower than or equal to this
  82. value(bytes per sec).
  83. '0' means aria2 does not have a lowest speed limit.
  84. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  85. This option does not affect BitTorrent downloads.
  86. Default: '0'
  87. *--max-file-not-found*=NUM::
  88. If aria2 receives `file not found' status from the remote HTTP/FTP
  89. servers NUM times without getting a single byte, then force the
  90. download to fail. Specify '0' to disable this option. This options is
  91. effective only when using HTTP/FTP servers.
  92. Default: '0'
  93. *-m*, *--max-tries*=N::
  94. Set number of tries. '0' means unlimited.
  95. Default: '5'
  96. *-n*, *--no-netrc*::
  97. Disables netrc support. netrc support is enabled by default.
  98. *--no-proxy*=DOMAINS::
  99. Specify comma separated hostnames or domains where proxy should not be
  100. used.
  101. *-o*, *--out*=FILE::
  102. The file name of the downloaded file. When *-Z* option is used, this
  103. option is ignored.
  104. [NOTE]
  105. In Metalink or BitTorrent download you cannot specify file name.
  106. The file name specified here is only used when the URLs fed to aria2
  107. are done by command line without *-i*, *-Z* option. For example:
  108. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"
  109. *--proxy-method*=METHOD::
  110. Set the method to use in proxy request. 'METHOD' is either 'get' or
  111. 'tunnel'. HTTPS downloads always use 'tunnel' regardless of this
  112. option.
  113. Default: 'get'
  114. *-R*, *--remote-time*[='true'|'false']::
  115. Retrieve timestamp of the remote file from the remote HTTP/FTP
  116. server and if it is available, apply it to the local file.
  117. Default: 'false'
  118. *--server-stat-of*=FILE::
  119. Specify the filename to which performance profile of the servers is
  120. saved. You can load saved data using *--server-stat-if* option. See
  121. *Server Performance Profile* subsection below for file format.
  122. *--server-stat-if*=FILE::
  123. Specify the filename to load performance profile of the servers. The
  124. loaded data will be used in some URI selector such as 'feedback'.
  125. See also *--uri-selector* option. See *Server Performance Profile*
  126. subsection below for file format.
  127. *--server-stat-timeout*=SEC::
  128. Specifies timeout in seconds to invalidate performance profile of
  129. the servers since the last contact to them.
  130. Default: '86400' (24hours)
  131. *-s*, *--split*=N::
  132. Download a file using N connections.
  133. If more than N URLs are given, first N URLs are used and remaining URLs are
  134. used for backup.
  135. If less than N URLs are given, those URLs are used more than once so that N
  136. connections total are made simultaneously.
  137. Please see *-j* option too.
  138. Please note that in Metalink download, this option has no effect and use
  139. *-C* option instead.
  140. Default: '5'
  141. *-t*, *--timeout*=SEC::
  142. Set timeout in seconds.
  143. Default: '60'
  144. *--uri-selector*=SELECTOR::
  145. Specify URI selection algorithm. The possible values are 'inorder',
  146. 'feedback' and 'adaptive'. If 'inorder' is given, URI is tried in
  147. the order appeared in the URI list. If 'feedback' is given, aria2
  148. uses download speed observed in the previous downloads and choose
  149. fastest server in the URI list. This also effectively skips dead
  150. mirrors. The observed download speed is a part of performance
  151. profile of servers mentioned in *--server-stat-of* and
  152. *--server-stat-if* options. If 'adaptive' is given, selects one of
  153. the best mirrors for the first and reserved connections. For
  154. supplementary ones, it returns mirrors which has not been tested
  155. yet, and if each of them has already been tested, returns mirrors
  156. which has to be tested again. Otherwise, it doesn't select anymore
  157. mirrors. Like 'feedback', it uses a performance profile of servers.
  158. Default: 'feedback'
  159. HTTP Specific Options
  160. ~~~~~~~~~~~~~~~~~~~~~
  161. *--ca-certificate*=FILE::
  162. Use the certificate authorities in FILE to verify the peers.
  163. The certificate file must be in PEM format and can contain multiple CA
  164. certificates.
  165. Use *--check-certificate* option to enable verification.
  166. *--certificate*=FILE::
  167. Use the client certificate in FILE.
  168. The certificate must be in PEM format.
  169. You may use *--private-key* option to specify the private key.
  170. *--check-certificate*[='true'|'false']::
  171. Verify the peer using certificates specified in *--ca-certificate* option.
  172. Default: 'true'
  173. *--http-auth-challenge*[='true'|'false']::
  174. Send HTTP authorization header only when it is requested by the
  175. server. If 'false' is set, then authorization header is always sent
  176. to the server. There is an exception: if username and password are
  177. embedded in URI, authorization header is always sent to the server
  178. regardless of this option. Default: 'false'
  179. *--http-user*=USER::
  180. Set HTTP user. This affects all URLs.
  181. *--http-passwd*=PASSWD::
  182. Set HTTP password. This affects all URLs.
  183. *--http-proxy*=PROXY::
  184. Use this proxy server for HTTP. See also *--all-proxy* option.
  185. This affects all URLs.
  186. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  187. *--https-proxy*=PROXY::
  188. Use this proxy server for HTTPS. See also *--all-proxy* option.
  189. This affects all URLs.
  190. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  191. *--private-key*=FILE::
  192. Use the private key in FILE.
  193. The private key must be decrypted and in PEM format.
  194. The behavior when encrypted one is given is undefined.
  195. See also *--certificate* option.
  196. *--referer*=REFERER::
  197. Set Referer. This affects all URLs.
  198. *--enable-http-keep-alive*[='true'|'false']::
  199. Enable HTTP/1.1 persistent connection.
  200. Default: 'true'
  201. *--enable-http-pipelining*[='true'|'false']::
  202. Enable HTTP/1.1 pipelining.
  203. Default: 'false'
  204. *--header*=HEADER::
  205. Append HEADER to HTTP request header.
  206. You can use this option repeatedly to specify more than one header:
  207. aria2c *--header*="X-A: b78" *--header*="X-B: 9J1" "http://host/file"
  208. *--load-cookies*=FILE::
  209. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  210. Mozilla/Firefox(1.x/2.x)/Netscape format.
  211. [NOTE]
  212. If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.
  213. *--save-cookies*=FILE::
  214. Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/ Netscape
  215. format. If FILE already exists, it is overwritten. Session Cookies
  216. are also saved and their expiry values are treated as 0. Possible
  217. Values: '/path/to/file'
  218. *--use-head*[='true'|'false']::
  219. Use HEAD method for the first request to the HTTP server.
  220. Default: 'false'
  221. *-U*, *--user-agent*=USER_AGENT::
  222. Set user agent for HTTP(S) downloads.
  223. Default: 'aria2/$VERSION', $VERSION is replaced by package version.
  224. FTP Specific Options
  225. ~~~~~~~~~~~~~~~~~~~~
  226. *--ftp-user*=USER::
  227. Set FTP user. This affects all URLs.
  228. Default: 'anonymous'
  229. *--ftp-passwd*=PASSWD::
  230. Set FTP password. This affects all URLs.
  231. If user name is embedded but password is missing in URI, aria2 tries
  232. to resolve password using .netrc. If password is found in .netrc,
  233. then use it as password. If not, use the password specified in this
  234. option.
  235. Default: 'ARIA2USER@'
  236. *-p*, *--ftp-pasv*[='true'|'false']::
  237. Use the passive mode in FTP.
  238. If 'false' is given, the active mode will be used.
  239. Default: 'true'
  240. *--ftp-proxy*=PROXY::
  241. Use this proxy server for FTP. See also *--all-proxy* option.
  242. This affects all URLs.
  243. The format of PROXY is [\http://][USER:PASSWORD@]HOST[:PORT]
  244. *--ftp-type*=TYPE::
  245. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  246. Default: 'binary'
  247. *--ftp-reuse-connection*[='true'|'false']::
  248. Reuse connection in FTP.
  249. Default: 'true'
  250. BitTorrent/Metalink Options
  251. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  252. *--select-file*=INDEX...::
  253. Set file to download by specifying its index.
  254. You can find the file index using the *--show-files* option.
  255. Multiple indexes can be specified by using ",", for example: '3,6'.
  256. You can also use "-" to specify a range: '1-5'.
  257. "," and "-" can be used together: '1-5,8,9'.
  258. When used with the -M option, index may vary depending on the query
  259. (see *--metalink-** options).
  260. [NOTE]
  261. In multi file torrent, the adjacent files specified by this option may
  262. also be downloaded. This is by design, not a bug.
  263. A single piece may include several files or part of files, and aria2
  264. writes the piece to the appropriate files.
  265. *-S*, *--show-files*::
  266. Print file listing of .torrent or .metalink file and exit.
  267. In case of .torrent file, additional information
  268. (infohash, piece length, etc) is also printed.
  269. BitTorrent Specific Options
  270. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  271. *--bt-external-ip*=IPADDRESS::
  272. Specify the external IP address to report to a BitTorrent
  273. tracker. Although this function is named "external", it can accept
  274. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  275. *--bt-hash-check-seed*[='true'|'false']::
  276. If 'true' is given, after hash check using *--check-integrity* option and
  277. file is complete, continue to seed file. If you want to check file
  278. and download it only when it is damaged or incomplete, set this
  279. option to 'false'. This option has effect only on BitTorrent download.
  280. Default: 'true'
  281. *--bt-max-open-files*=NUM::
  282. Specify maximum number of files to open in each BitTorrent download.
  283. Default: '100'
  284. *--bt-max-peers*=NUM::
  285. Specify the maximum number of peers per torrent. '0' means
  286. unlimited. See also *--bt-request-peer-speed-limit* option.
  287. Default: '55'
  288. *--bt-min-crypto-level*='plain'|'arc4'::
  289. Set minimum level of encryption method.
  290. If several encryption methods are provided by a peer, aria2 chooses the lowest
  291. one which satisfies the given level.
  292. Default: 'plain'
  293. *--bt-prioritize-piece*='head'[=SIZE],'tail'[=SIZE]::
  294. Try to download first and last pieces of each file first. This is
  295. useful for previewing files. The argument can contain 2 keywords:
  296. 'head' and 'tail'. To include both keywords, they must be separated
  297. by comma. These keywords can take one parameter, SIZE. For example,
  298. if 'head'=SIZE is specified, pieces in the range of first SIZE bytes
  299. of each file get higher priority. 'tail'=SIZE means the range of
  300. last SIZE bytes of each file. SIZE can include 'K' or 'M'(1K = 1024,
  301. 1M = 1024K). If SIZE is omitted, SIZE=1M is used.
  302. *--bt-require-crypto*='true'|'false'::
  303. If true is given, aria2 doesn't accept and establish connection with legacy
  304. BitTorrent handshake(\19BitTorrent protocol).
  305. Thus aria2 always uses Obfuscation handshake.
  306. Default: 'false'
  307. *--bt-request-peer-speed-limit*=SPEED::
  308. If the whole download speed of every torrent is lower than SPEED,
  309. aria2 temporarily increases the number of peers to try for more
  310. download speed. Configuring this option with your preferred download
  311. speed can increase your download speed in some cases.
  312. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  313. Default: '50K'
  314. *--bt-save-metadata*[='true'|'false']::
  315. Save metadata as .torrent file. This option has effect only when
  316. BitTorrent Magnet URI is used. The filename is hex encoded info
  317. hash with suffix .torrent. The directory to be saved is the same
  318. directory where download file is saved. If the same file already
  319. exists, metadata is not saved. Default: 'false'
  320. *--bt-seed-unverified*[='true'|'false']::
  321. Seed previously downloaded files without verifying piece hashes.
  322. Default: 'false'
  323. *--bt-stop-timeout*=SEC::
  324. Stop BitTorrent download if download speed is 0 in consecutive SEC
  325. seconds. If '0' is given, this feature is disabled. Default: '0'
  326. *--bt-tracker-interval*=SEC::
  327. Set the interval in seconds between tracker requests. This
  328. completely overrides interval value and aria2 just uses this value
  329. and ignores the min interval and interval value in the response of
  330. tracker. If '0' is set, aria2 determines interval based on the
  331. response of tracker and the download progress. Default: '0'
  332. *--dht-entry-point*=HOST:PORT::
  333. Set host and port as an entry point to DHT network.
  334. *--dht-file-path*=PATH::
  335. Change the DHT routing table file to PATH.
  336. Default: '$HOME/.aria2/dht.dat'
  337. *--dht-listen-port*=PORT...::
  338. Set UDP listening port for DHT.
  339. Multiple ports can be specified by using ",", for example: '6881,6885'.
  340. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  341. together.
  342. Default: '6881-6999'
  343. [NOTE]
  344. Make sure that the specified ports are open for incoming UDP traffic.
  345. *--enable-dht*[='true'|'false']::
  346. Enable DHT functionality. If a private flag is set in a torrent, aria2
  347. doesn't use DHT for that download even if 'true' is given.
  348. Default: 'true'
  349. *--enable-peer-exchange*[='true'|'false']::
  350. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  351. feature is disabled for that download even if 'true' is given.
  352. Default: 'true'
  353. *--follow-torrent*='true'|'false'|'mem'::
  354. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  355. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  356. file and downloads files mentioned in it.
  357. If 'mem' is specified, a torrent file is not written to the disk, but is just
  358. kept in memory.
  359. If 'false' is specified, the action mentioned above is not taken.
  360. Default: 'true'
  361. *-O*, *--index-out*=INDEX=PATH::
  362. Set file path for file with index=INDEX. You can find the file index
  363. using the *--show-files* option. PATH is a relative path to the
  364. path specified in *--dir* option. You can use this option multiple
  365. times. Using this option, you can specify the output filenames of
  366. BitTorrent downloads.
  367. *--listen-port*=PORT...::
  368. Set TCP port number for BitTorrent downloads.
  369. Multiple ports can be specified by using ",", for example: '6881,6885'.
  370. You can also use "-" to specify a range: '6881-6999'.
  371. "," and "-" can be used together: '6881-6889,6999'.
  372. Default: '6881-6999'
  373. [NOTE]
  374. Make sure that the specified ports are open for incoming TCP traffic.
  375. *--max-overall-upload-limit*=SPEED::
  376. Set max overall upload speed in bytes/sec.
  377. '0' means unrestricted.
  378. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  379. To limit the upload speed per torrent, use *--max-upload-limit* option.
  380. Default: '0'
  381. *-u*, *--max-upload-limit*=SPEED::
  382. Set max upload speed per each torrent in bytes/sec.
  383. '0' means unrestricted.
  384. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  385. To limit the overall upload speed, use *--max-overall-upload-limit* option.
  386. Default: '0'
  387. *--peer-id-prefix*=PEER_ID_PREFIX::
  388. Specify the prefix of peer ID. The peer ID in
  389. BitTorrent is 20 byte length. If more than 20
  390. bytes are specified, only first 20 bytes are
  391. used. If less than 20 bytes are specified, random
  392. byte data are added to make its length 20 bytes.
  393. Default: 'aria2/$VERSION-', $VERSION is replaced by package version.
  394. *--seed-ratio*=RATIO::
  395. Specify share ratio. Seed completed torrents until share ratio reaches
  396. RATIO.
  397. You are strongly encouraged to specify equals or more than '1.0' here.
  398. Specify '0.0' if you intend to do seeding regardless of share ratio.
  399. If *--seed-time* option is specified along with this option, seeding ends when
  400. at least one of the conditions is satisfied.
  401. Default: '1.0'
  402. *--seed-time*=MINUTES::
  403. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  404. *-T*, *--torrent-file*=TORRENT_FILE::
  405. The path to the .torrent file. You are not required to use this
  406. option because you can specify .torrent files without *-T*.
  407. Metalink Specific Options
  408. ~~~~~~~~~~~~~~~~~~~~~~~~~
  409. *--follow-metalink*='true'|'false'|'mem'::
  410. If 'true' or 'mem' is specified, when a file whose suffix is ".metalink" or content
  411. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  412. file and downloads files mentioned in it.
  413. If 'mem' is specified, a metalink file is not written to the disk, but is just
  414. kept in memory.
  415. If 'false' is specified, the action mentioned above is not taken.
  416. Default: 'true'
  417. *-M*, *--metalink-file*=METALINK_FILE::
  418. The file path to .metalink file. Reads input from stdin when '-' is
  419. specified. You are not required to use this option because you can
  420. specify .metalink files without *-M*.
  421. *-C*, *--metalink-servers*=NUM_SERVERS::
  422. The number of servers to connect to simultaneously.
  423. Some Metalinks regulate the number of servers to connect.
  424. aria2 strictly respects them.
  425. This means that if Metalink defines the maxconnections attribute lower
  426. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  427. instead of NUM_SERVERS.
  428. See also *-s* and *-j* options.
  429. Default: '5'
  430. *--metalink-language*=LANGUAGE::
  431. The language of the file to download.
  432. *--metalink-location*=LOCATION[,...]::
  433. The location of the preferred server.
  434. A comma-delimited list of locations is acceptable, for example, 'JP,US'.
  435. *--metalink-os*=OS::
  436. The operating system of the file to download.
  437. *--metalink-version*=VERSION::
  438. The version of the file to download.
  439. *--metalink-preferred-protocol*=PROTO::
  440. Specify preferred protocol.
  441. The possible values are 'http', 'https', 'ftp' and 'none'.
  442. Specify 'none' to disable this feature.
  443. Default: 'none'
  444. *--metalink-enable-unique-protocol*='true'|'false'::
  445. If 'true' is given and several protocols are available for a mirror in a
  446. metalink file, aria2 uses one of them.
  447. Use *--metalink-preferred-protocol* option to specify the preference of
  448. protocol.
  449. Default: 'true'
  450. XML-RPC Options
  451. ~~~~~~~~~~~~~~~
  452. *--enable-xml-rpc*[='true'|'false']::
  453. Enable XML-RPC server. It is strongly recommended to set username
  454. and password using *--xml-rpc-user* and *--xml-rpc-passwd*
  455. option. See also *--xml-rpc-listen-port* option. Default: 'false'
  456. *--xml-rpc-listen-all*[='true'|'false']::
  457. Listen incoming XML-RPC requests on all network interfaces. If false
  458. is given, listen only on local loopback interface. Default: 'false'
  459. *--xml-rpc-listen-port*=PORT::
  460. Specify a port number for XML-RPC server to listen to. Possible
  461. Values: '1024'-'65535' Default: '6800'
  462. *--xml-rpc-max-request-size*=SIZE::
  463. Set max size of XML-RPC request. If aria2 detects the request is
  464. more than SIZE bytes, it drops connection. Default: '2M'
  465. *--xml-rpc-passwd*=PASSWD::
  466. Set XML-RPC password.
  467. *--xml-rpc-user*=USER::
  468. Set XML-RPC user.
  469. Advanced Options
  470. ~~~~~~~~~~~~~~~~
  471. *--allow-overwrite*='true'|'false'::
  472. If 'false' is given, and a file already exists but the corresponding
  473. control file (filename.aria2) doesn't exist, then aria2 will not
  474. re-download the file. See also *--auto-file-renaming* option.
  475. Default: 'false'
  476. *--allow-piece-length-change*='true'|'false'::
  477. If false is given, aria2 aborts download when a piece length is different
  478. from one in a control file.
  479. If true is given, you can proceed but some download progress will be lost.
  480. Default: 'false'
  481. *--async-dns*[='true'|'false']::
  482. Enable asynchronous DNS.
  483. Default: 'true'
  484. *--auto-file-renaming*[='true'|'false']::
  485. Rename file name if the same file already exists.
  486. This option works only in HTTP(S)/FTP download.
  487. The new file name has a dot and a number(1..9999) appended.
  488. Default: 'true'
  489. *--auto-save-interval*=SEC::
  490. Save a control file(*.aria2) every SEC seconds.
  491. If '0' is given, a control file is not saved during download. aria2 saves a
  492. control file when it stops regardless of the value.
  493. The possible values are between '0' to '600'.
  494. Default: '60'
  495. *--conf-path*=PATH::
  496. Change the configuration file path to PATH.
  497. Default: '$HOME/.aria2/aria2.conf'
  498. *-D*, *--daemon*::
  499. Run as daemon. The current working directory will be changed to '/'
  500. and standard input, standard output and standard error will be
  501. redirected to '/dev/null'. Default: 'false'
  502. *--disable-ipv6*[='true'|'false']::
  503. Disable IPv6. This is useful if you have to use broken DNS and want
  504. to avoid terribly slow AAAA record lookup. Default: 'false'
  505. *--enable-direct-io*[='true'|'false']::
  506. Enable directI/O, which lowers cpu usage while allocating/checking files.
  507. Turn off if you encounter any error.
  508. Default: 'true'
  509. *--event-poll*=POLL::
  510. Specify the method for polling events. The possible Values are
  511. 'epoll' and 'select'. If you use recent Linux that has epoll, then
  512. the default value is 'epoll'. Otherwise, the default value is
  513. 'select'.
  514. *--file-allocation*=METHOD::
  515. Specify file allocation method.
  516. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  517. before download begins. This may take some time depending on the size of the
  518. file.
  519. If you are using newer file systems such as ext4
  520. (with extents support), btrfs or xfs, 'falloc' is
  521. your best choice. It allocates large(few GiB)
  522. files almost instantly. Don't use 'falloc' with
  523. legacy file systems such as ext3 because it takes
  524. almost same time as 'prealloc' and it blocks aria2
  525. entirely until allocation finishes. 'falloc' may
  526. not be available if your system doesn't have
  527. *posix_fallocate*() function.
  528. Possible Values: 'none', 'prealloc', 'falloc'
  529. Default: 'prealloc'
  530. *--interface*=INTERFACE::
  531. Bind sockets to given interface. You can specify interface name, IP
  532. address and hostname.
  533. Possible Values: interface, IP address, hostname
  534. [NOTE]
  535. If an interface has multiple addresses, it is highly recommended to
  536. specify IP address explicitly. See also *--disable-ipv6*. If your
  537. system doesn't have getifaddrs(), this option doesn't accept interface
  538. name.
  539. *--log-level*=LEVEL::
  540. Set log level to output.
  541. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  542. Default: 'debug'
  543. *--on-download-complete*=COMMAND::
  544. Set the command to be executed when download completes. See
  545. *--on-download-start* option for the requirement of COMMAND. See
  546. also *--on-download-stop* option. Possible Values:
  547. '/path/to/command'
  548. *--on-download-error*=COMMAND::
  549. Set the command to be executed when download aborts due to error.
  550. See *--on-download-start* option for the requirement of COMMAND.
  551. See also *--on-download-stop* option. Possible Values:
  552. '/path/to/command'
  553. *--on-download-start*=COMMAND::
  554. Set the command to be executed when download starts up. COMMAND must
  555. take just one argument and GID is passed to COMMAND as a first
  556. argument. Possible Values: '/path/to/command'
  557. *--on-download-stop*=COMMAND::
  558. Set the command to be executed when download stops. You can override
  559. the command to be executed for particular download result using
  560. *--on-download-complete* and *--on-download-error*. If they are
  561. specified, command specified in this option is not executed. See
  562. *--on-download-start* option for the requirement of COMMAND.
  563. Possible Values: '/path/to/command'
  564. *--summary-interval*=SEC::
  565. Set interval in seconds to output download progress summary.
  566. Setting '0' suppresses the output.
  567. Default: '60'
  568. [NOTE]
  569. In multi file torrent downloads, the files adjacent forward to the specified files
  570. are also allocated if they share the same piece.
  571. *-Z*, *--force-sequential*[='true'|'false']::
  572. Fetch URIs in the command-line sequentially and download each URI in a
  573. separate session, like the usual command-line download utilities.
  574. Default: 'false'
  575. *--max-overall-download-limit*=SPEED::
  576. Set max overall download speed in bytes/sec. '0' means
  577. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  578. limit the download speed per download, use *--max-download-limit*
  579. option. Default: '0'
  580. *--max-download-limit*=SPEED::
  581. Set max download speed per each download in bytes/sec. '0' means
  582. unrestricted. You can append 'K' or 'M'(1K = 1024, 1M = 1024K). To
  583. limit the overall download speed, use *--max-overall-download-limit*
  584. option. Default: '0'
  585. *--no-conf*::
  586. Disable loading aria2.conf file.
  587. *--no-file-allocation-limit*=SIZE::
  588. No file allocation is made for files whose size is smaller than SIZE.
  589. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  590. Default: '5M'
  591. *-P*, *--parameterized-uri*[='true'|'false']::
  592. Enable parameterized URI support.
  593. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  594. Also you can specify numeric sequences with step counter:
  595. '\http://host/image[000-100:2].img'.
  596. A step counter can be omitted.
  597. If all URIs do not point to the same file, such as the second example above,
  598. -Z option is required.
  599. Default: 'false'
  600. *-q*, *--quiet*[='true'|'false']::
  601. Make aria2 quiet (no console output).
  602. Default: 'false'
  603. *--realtime-chunk-checksum*='true'|'false'::
  604. Validate chunk of data by calculating checksum while downloading a file if
  605. chunk checksums are provided.
  606. Default: 'true'
  607. *--stop*=SEC::
  608. Stop application after SEC seconds has passed.
  609. If '0' is given, this feature is disabled.
  610. Default: '0'
  611. *-v*, *--version*::
  612. Print the version number, copyright and the configuration information and
  613. exit.
  614. Options That Take An Optional Argument
  615. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  616. The options that have its argument surrounded by square brackets([])
  617. take an optional argument. Usually omiting the argument is evaluated to 'true'.
  618. If you use short form of these options(such as '-V') and give
  619. an argument, then the option name and its argument should be concatenated(e.g.
  620. '-Vfalse'). If any spaces are inserted between the option name and the argument,
  621. the argument will be treated as URI and usually this is not what you expect.
  622. URI, MAGNET, TORRENT_FILE, METALINK_FILE
  623. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  624. You can specify multiple URLs in command-line. Unless you specify
  625. *-Z* option, all URLs must point to the same file or downloading will
  626. fail.
  627. You can specify arbitrary number of BitTorrent Magnet URI. Please note
  628. that they are always treated as a separate download. Both hex encoded
  629. 40 characters Info Hash and Base32 encoded 32 characters Info Hash are
  630. supported. The multiple "tr" parameters are supported. Because
  631. BitTorrent Magnet URI is likely to contain "&" character, it is highly
  632. recommended to always quote URI with single(') or double(") quotation.
  633. It is strongly recommended to enable DHT especially when "tr"
  634. parameter is missing. See http://www.bittorrent.org/beps/bep_0009.html
  635. for more details about BitTorrent Magnet URI.
  636. You can also specify arbitrary number of torrent files and metalink files
  637. stored on a local drive. Please note that they are always treated as a
  638. separate download.
  639. You can specify both torrent file with -T option and URLs. By doing
  640. this, you can download a file from both torrent swarm and HTTP(S)/FTP
  641. server at the same time, while the data from HTTP(S)/FTP are uploaded
  642. to the torrent swarm. For single file torrents, URL can be a complete
  643. URL pointing to the resource or if URL ends with /, name in torrent
  644. file in torrent is added. For multi-file torrents, name and path are
  645. added to form a URL for each file.
  646. [NOTE]
  647. Make sure that URL is quoted with single(') or double(") quotation if it
  648. contains "&" or any characters that have special meaning in shell.
  649. Resuming Download
  650. ~~~~~~~~~~~~~~~~~
  651. Usually, you can resume transfer by just issuing same command(aria2c
  652. URL) if the previous transfer is made by aria2.
  653. If the previous transfer is made by a browser or wget like sequential
  654. download manager, then use -c option to continue the transfer(aria2c
  655. *-c* URL).
  656. EXIT STATUS
  657. -----------
  658. Because aria2 can handle multiple downloads at once, it encounters
  659. lots of errors in a session. aria2 returns the following exit status
  660. based on the last error encountered.
  661. *0*::
  662. If all downloads are successful.
  663. *1*::
  664. If an unknown error occurs.
  665. *2*::
  666. If time out occurs.
  667. *3*::
  668. If a resource is not found.
  669. *4*::
  670. If aria2 sees the specfied number of "resource not found" error.
  671. See *--max-file-not-found* option).
  672. *5*::
  673. If a download aborts because download speed is too slow.
  674. See *--lowest-speed-limit* option)
  675. *6*::
  676. If network problem occurs.
  677. *7*::
  678. If there are unfinished downloads. This error is only reported if
  679. all finished downloads are successful and there are unfinished
  680. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  681. or sending TERM or INT signal.
  682. [NOTE]
  683. An error occurred in a finished download will not be reported
  684. as exit status.
  685. ENVIRONMENT
  686. -----------
  687. aria2 recognizes the following environment variables.
  688. http_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  689. Specify proxy server for use in HTTP.
  690. Overrides http-proxy value in configuration file.
  691. The command-line option *--http-proxy* overrides this value.
  692. https_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  693. Specify proxy server for use in HTTPS.
  694. Overrides https-proxy value in configuration file.
  695. The command-line option *--https-proxy* overrides this value.
  696. ftp_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  697. Specify proxy server for use in FTP.
  698. Overrides ftp-proxy value in configuration file.
  699. The command-line option *--ftp-proxy* overrides this value.
  700. all_proxy [\http://][USER:PASSWORD@]HOST[:PORT]::
  701. Specify proxy server for use if no protocol-specific proxy is specified.
  702. Overrides all-proxy value in configuration file.
  703. The command-line option *--all-proxy* overrides this value.
  704. no_proxy [DOMAIN,...]::
  705. Specify comma-separated hostname or domains to which proxy should not be used.
  706. Overrides no-proxy value in configuration file.
  707. The command-line option *--no-proxy* overrides this value.
  708. FILES
  709. -----
  710. aria2.conf
  711. ~~~~~~~~~~
  712. By default, aria2 parses '$HOME/.aria2/aria2.conf' as a configuraiton
  713. file. You can specify the path to configuration file using
  714. *--conf-path* option. If you don't want to use the configuraitonf
  715. file, use *--no-conf* option.
  716. The configuration file is a text file and has 1 option per each
  717. line. In each line, you can specify name-value pair in the format:
  718. NAME=VALUE, where name is the long command-line option name without
  719. "--" prefix. You can use same syntax for the command-line option. The
  720. lines beginning "#" are treated as comments.
  721. --------------------------------------
  722. # sample configuration file for aria2c
  723. listen-port=60000
  724. dht-listen-port=60000
  725. seed-ratio=1.0
  726. max-upload-limit=50K
  727. ftp-pasv=true
  728. --------------------------------------
  729. dht.dat
  730. ~~~~~~~~
  731. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  732. Control File
  733. ~~~~~~~~~~~~
  734. aria2 uses a control file to track the progress of a download. A
  735. control file is placed in the same directory as the downloading file
  736. and its filename is the filename of downloading file with ".aria2"
  737. appended. For example, if you are downloading file.zip, then the
  738. control file should be file.zip.aria2. (There is a exception for this
  739. naming convention. If you are downloading a multi torrent, its
  740. control file is the "top directory" name of the torrent with ".aria2"
  741. appended. The "top directory" name is a value of "name" key in "info"
  742. directory in a torrent file.)
  743. Usually a control file is deleted once download completed. If aria2
  744. decides that download cannot be resumed(for example, when downloading
  745. a file from a HTTP server which doesn't support resume), a control
  746. file is not created.
  747. Normally if you lose a control file, you cannot resume download. But
  748. if you have a torrent or metalink with chunk checksums for the file,
  749. you can resume the download without a control file by giving -V option
  750. to aria2c in command-line.
  751. Input File
  752. ~~~~~~~~~~
  753. The input file can contain a list of URIs for aria2 to download. You
  754. can specify multiple URIs for a single entity: separate URIs on a
  755. single line using the TAB character.
  756. Each line is treated as if it is provided in command-line argument.
  757. Therefore they are affected by *-Z* and *-P* options.
  758. Additionally, the following options can be specified after each line
  759. of URIs. These optional lines must start with white space(s).
  760. * dir
  761. * check-integrity
  762. * continue
  763. * all-proxy
  764. * connect-timeout
  765. * dry-run
  766. * lowest-speed-limit
  767. * max-file-not-found
  768. * max-tries
  769. * no-proxy
  770. * out
  771. * proxy-method
  772. * remote-time
  773. * split
  774. * timeout
  775. * http-auth-challenge
  776. * http-user
  777. * http-passwd
  778. * http-proxy
  779. * https-proxy
  780. * referer
  781. * enable-http-keep-alive
  782. * enable-http-pipelining
  783. * header
  784. * use-head
  785. * user-agent
  786. * ftp-user
  787. * ftp-passwd
  788. * ftp-pasv
  789. * ftp-proxy
  790. * ftp-type
  791. * ftp-reuse-connection
  792. * no-netrc
  793. * select-file
  794. * bt-external-ip
  795. * bt-hash-check-seed
  796. * bt-max-open-files
  797. * bt-max-peers
  798. * bt-min-crypto-level
  799. * bt-prioritize-piece
  800. * bt-require-crypto
  801. * bt-request-peer-speed-limit
  802. * bt-save-metadata
  803. * bt-seed-unverified
  804. * bt-stop-timeout
  805. * bt-tracker-interval
  806. * enable-peer-exchange
  807. * follow-torrent
  808. * index-out
  809. * max-upload-limit
  810. * seed-ratio
  811. * seed-time
  812. * follow-metalink
  813. * metalink-servers
  814. * metalink-language
  815. * metalink-location
  816. * metalink-os
  817. * metalink-version
  818. * metalink-preferred-protocol
  819. * metalink-enable-unique-protocol
  820. * allow-overwrite
  821. * allow-piece-length-change
  822. * async-dns
  823. * auto-file-renaming
  824. * file-allocation
  825. * max-download-limit
  826. * no-file-allocation-limit
  827. * parameterized-uri
  828. * realtime-chunk-checksum
  829. These options have exactly same meaning of the ones in the
  830. command-line options, but it just applies to the URIs it belongs to.
  831. For example, the content of uri.txt is
  832. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  833. http://server/file.iso http://mirror/file.iso
  834. dir=/iso_images
  835. out=file.img
  836. http://foo/bar
  837. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  838. If aria2 is executed with *-i* uri.txt *-d* /tmp options, then
  839. 'file.iso' is saved as '/iso_images/file.img' and it is downloaded
  840. from \http://server/file.iso and \http://mirror/file.iso. The file
  841. 'bar' is downloaded from \http://foo/bar and saved as '/tmp/bar'.
  842. In some cases, *out* parameter has no effect. See note of *--out*
  843. option for the restrictions.
  844. Server Performance Profile
  845. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  846. This section describes the format of server performance profile. The
  847. file is plain text and each line has several NAME=VALUE pair,
  848. delimited by comma. Currently following NAMEs are recognized:
  849. host::
  850. Hostname of the server. Required.
  851. protocol::
  852. Protocol for this profile, such as ftp, http. Required.
  853. dl_speed::
  854. The average download speed observed in the previous download in
  855. bytes per sec. Required.
  856. sc_avg_speed::
  857. The average download speed observed in the previous download in
  858. bytes per sec. This value is only updated if the download is done in
  859. single connection environment and only used by
  860. AdaptiveURISelector. Optional.
  861. mc_avg_speed::
  862. The average download speed observed in the previous download in
  863. bytes per sec. This value is only updated if the download is done in
  864. multi connection environment and only used by
  865. AdaptiveURISelector. Optional.
  866. counter::
  867. How many times the server is used. Currently this value is only used
  868. by AdaptiveURISelector. Optional.
  869. last_updated::
  870. Last contact time in GMT with this server, specified in the seconds
  871. from the Epoch. Required.
  872. status::
  873. ERROR is set when server cannot be reached or out-of-service or
  874. timeout occurred. Otherwise, OK is set.
  875. Those fields must exist in one line. The order of the fields is not
  876. significant. You can put pairs other than the above; they are simply
  877. ignored.
  878. An example follows:
  879. --------------------------------------------------------------------------------
  880. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  881. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  882. --------------------------------------------------------------------------------
  883. XML-RPC INTERFACE
  884. -----------------
  885. Terminology
  886. ~~~~~~~~~~~
  887. GID::
  888. GID(or gid) is the key to manage each download. Each download has an
  889. unique GID. Currently GID looks like an integer, but don't treat it
  890. as integer because it may be changed to another type in the future
  891. release.
  892. Methods
  893. ~~~~~~~
  894. *aria2.addUri* 'uris[, options[, position]]'
  895. This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. 'uris' is of
  896. type array and its element is URI which is of type string. For
  897. BitTorrent Magnet URI, 'uris' must have only one element and it should
  898. be BitTorrent Magnet URI. 'options' is of type struct and its members
  899. are a pair of option name and value. See *Options* below for more
  900. details. If 'position' is given as an integer starting from 0, the
  901. new download is inserted at 'position' in the waiting queue. If
  902. 'position' is not given or 'position' is larger than the size of the
  903. queue, it is appended at the end of the queue. This method returns
  904. GID of registered download.
  905. *aria2.addTorrent* 'torrent[, uris[, options[, position]]]'
  906. This method adds BitTorrent download by uploading .torrent file. If
  907. you want to add BitTorrent Magnet URI, use *aria2.addUri* method
  908. instead. 'torrent' is of type base64 which contains Base64-encoded
  909. .torrent file. 'uris' is of type array and its element is URI which
  910. is of type string. 'uris' is used for Web-seeding. For single file
  911. torrents, URI can be a complete URI pointing to the resource or if URI
  912. ends with /, name in torrent file is added. For multi-file torrents,
  913. name and path in torrent are added to form a URI for each file.
  914. 'options' is of type struct and its members are a pair of option name
  915. and value. See *Options* below for more details. If 'position' is
  916. given as an integer starting from 0, the new download is inserted at
  917. 'position' in the waiting queue. If 'position' is not given or
  918. 'position' is larger than the size of the queue, it is appended at the
  919. end of the queue. This method returns GID of registered download.
  920. *aria2.addMetalink* 'metalink[, options[, position]]'
  921. This method adds Metalink download by uploading .metalink file.
  922. 'metalink' is of type base64 which contains Base64-encoded .metalink
  923. file. 'options' is of type struct and its members are a pair of
  924. option name and value. See *Options* below for more details. If
  925. 'position' is given as an integer starting from 0, the new download is
  926. inserted at 'position' in the waiting queue. If 'position' is not
  927. given or 'position' is larger than the size of the queue, it is
  928. appended at the end of the queue. This method returns array of GID of
  929. registered download.
  930. *aria2.remove* 'gid'
  931. This method removes the download denoted by 'gid'. 'gid' is of type
  932. string. If specified download is in progress, it is stopped at
  933. first. The status of removed download becomes "removed". This method
  934. returns GID of removed download.
  935. *aria2.tellStatus* 'gid'
  936. This method returns download progress of the download denoted by
  937. 'gid'. 'gid' is of type string. The response is of type struct and it
  938. contains following keys. The value type is string.
  939. gid::
  940. GID of this download.
  941. status::
  942. "active" for currently downloading/seeding entry. "waiting" for the
  943. entry in the queue; download is not started. "error" for the stopped
  944. download because of error. "complete" for the stopped and completed
  945. download. "removed" for the download removed by user.
  946. totalLength::
  947. Total length of this download in bytes.
  948. completedLength::
  949. Completed length of this download in bytes.
  950. uploadLength::
  951. Uploaded length of this download in bytes.
  952. bitfield::
  953. Hexadecimal representation of the download progress. The highest bit
  954. corresponds to piece index 0. The set bits indicate the piece is
  955. available and unset bits indicate the piece is missing. The spare
  956. bits at the end are set to zero.
  957. downloadSpeed::
  958. Download speed of this download measured in bytes/sec.
  959. uploadSpeed::
  960. Upload speed of this download measured in bytes/sec.
  961. infoHash::
  962. InfoHash. BitTorrent only.
  963. numSeeders::
  964. The number of seeders the client has connected to. BitTorrent only.
  965. pieceLength::
  966. Piece length in bytes.
  967. numPieces::
  968. The number of pieces.
  969. connections::
  970. The number of peers/servers the client has connected to.
  971. errorCode::
  972. The last error code occurred in this download. The value is of type
  973. string. The error codes are defined in EXIT STATUS section. This
  974. value is only available for stopped/completed downloads.
  975. followedBy::
  976. List of GIDs which are generated by the consequence of this
  977. download. For example, when aria2 downloaded Metalink file, it
  978. generates downloads described in it(see *--follow-metalink*
  979. option). This value is useful to track these auto generated
  980. downloads. If there is no such downloads, this key will not
  981. be included in the response.
  982. belongsTo::
  983. GID of a parent download. Some downloads are a part of another
  984. download. For example, if a file in Metalink has BitTorrent
  985. resource, the download of .torrent is a part of that file. If this
  986. download has no parent, this key will not be included in the
  987. response.
  988. *aria2.getUris* 'gid'
  989. This method returns URIs used in the download denoted by 'gid'. 'gid'
  990. is of type string. The response is of type array and its element is of
  991. type struct and it contains following keys. The value type is string.
  992. uri::
  993. URI
  994. *aria2.getFiles* 'gid'
  995. This method returns file list of the download denoted by 'gid'. 'gid'
  996. is of type string. The response is of type array and its element is of
  997. type struct and it contains following keys. The value type is string.
  998. index::
  999. Index of file. Starting with 1. This is the same order with the
  1000. files in multi-file torrent.
  1001. path::
  1002. File path.
  1003. length::
  1004. File size in bytes.
  1005. selected::
  1006. "true" if this file is selected by *--select-file* option. If
  1007. *--select-file* is not specified or this is single torrent or no
  1008. torrent download, this value is always "true". Otherwise "false".
  1009. *aria2.getPeers* 'gid'
  1010. This method returns peer list of the download denoted by 'gid'. 'gid'
  1011. is of type string. This method is for BitTorrent only. The response
  1012. is of type array and its element is of type struct and it contains
  1013. following keys. The value type is string.
  1014. peerId::
  1015. Percent-encoded peer ID.
  1016. ip::
  1017. IP address of the peer.
  1018. port::
  1019. Port number of the peer.
  1020. bitfield::
  1021. Hexadecimal representation of the download progress of the peer. The
  1022. highest bit corresponds to piece index 0. The set bits indicate the
  1023. piece is available and unset bits indicate the piece is missing. The
  1024. spare bits at the end are set to zero.
  1025. amChoking::
  1026. "true" if this client is choking the peer. Otherwise "false".
  1027. peerChoking::
  1028. "true" if the peer is choking this client. Otherwise "false".
  1029. downloadSpeed::
  1030. Download speed (byte/sec) that this client obtains from the peer.
  1031. uploadSpeed::
  1032. Upload speed(byte/sec) that this client uploads to the peer.
  1033. seeder::
  1034. "true" is this client is a seeder. Otherwise "false".
  1035. *aria2.tellActive*
  1036. This method returns the list of active downloads. The respose is of
  1037. type array and its element is the same struct returned by
  1038. *aria2.tellStatus* method.
  1039. *aria2.tellWaiting* 'offset, num'
  1040. This method returns the list of waiting download in the range of
  1041. ['offset', 'offset'+'num'). 'offset' is of type integer and specifies
  1042. the offset from the download waiting at the front. 'num' is of type
  1043. integer and specifies the number of downloads to be returned. For
  1044. example, imagine that three downloads "A","B" and "C" are waiting in
  1045. this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1,
  1046. 2) returns "B" and "C". The respose is of type array and its element
  1047. is the same struct returned by *aria2.tellStatus* method.
  1048. *aria2.tellStopped* 'offset, num'
  1049. This method returns the list of stopped download in the range of
  1050. ['offset', 'offset'+'num'). 'offset' is of type integer and specifies
  1051. the offset from the oldest download. 'num' is of type integer and
  1052. specifies the number of downloads to be returned. The respose is of
  1053. type array and its element is the same struct returned by
  1054. *aria2.tellStatus* method.
  1055. *aria2.changePosition* 'gid, pos, how'
  1056. This method changes the position of the download denoted by
  1057. 'gid'. 'pos' is of type integer. 'how' is of type string. If 'how' is
  1058. "POS_SET", it moves the download to a position relative to the
  1059. beginning of the queue. If 'how' is "POS_CUR", it moves the download
  1060. to a position relative to the current position. If 'how' is "POS_END",
  1061. it moves the download to a position relative to the end of the
  1062. queue. If the destination position is less than 0 or beyond the end of
  1063. the queue, it moves the download to the beginning or the end of the
  1064. queue respectively. The response is of type integer and it is the
  1065. destination position.
  1066. For example, if GID#1 is placed in position 3, aria2.changePosition(1,
  1067. -1, POS_CUR) will change its position to 2. Additional
  1068. aria2.changePosition(1, 0, POS_SET) will change its position to 0(the
  1069. beginning of the queue).
  1070. *aria2.getOption* 'gid'
  1071. This method returns options of the download denoted by 'gid'. The
  1072. response is of type struct. Its key is the name of option. The value type
  1073. is string.
  1074. *aria2.changeOption* 'gid, options'
  1075. This method changes options of the download denoted by 'gid'
  1076. dynamically. 'gid' is of type string. 'options' is of type struct
  1077. and the available options are: *bt-max-peers*,
  1078. *bt-request-peer-speed-limit*, *max-download-limit* and
  1079. *max-upload-limit*. This method returns "OK" for success.
  1080. *aria2.getGlobalOption*
  1081. This method returns global options. The response is of type
  1082. struct. Its key is the name of option. The value type is string.
  1083. Because global options are used as a template for the options of newly
  1084. added download, the response contains keys returned by
  1085. *aria2.getOption* method.
  1086. *aria2.changeGlobalOption* 'options'
  1087. This method changes global options dynamically. 'options' is of type
  1088. struct and the available options are *max-concurrent-downloads*,
  1089. *max-overall-download-limit* and *max-overall-upload-limit*. This
  1090. method returns "OK" for success.
  1091. *aria2.purgeDownloadResult*
  1092. This method purges completed/error/removed downloads to free memory.
  1093. This method returns "OK".
  1094. *aria2.getVersion*
  1095. This method returns version of the program and the list of enabled
  1096. features. The response is of type struct and contains following keys.
  1097. version::
  1098. Version number of the program in string.
  1099. enabledFeatures::
  1100. List of enabled features. Each feature name is of type string.
  1101. *system.multicall* 'methods'
  1102. This methods encapsulates multiple method calls in a single request.
  1103. 'methods' is of type array and its element is struct. The struct
  1104. contains two keys: "methodName" and "params". "methodName" is the
  1105. method name to call and "params" is array containing parameters to the
  1106. method. This method returns array of responses. The element of array
  1107. will either be a one-item array containing the return value of each
  1108. method call or struct of fault element if an encapsulated method call
  1109. fails.
  1110. Error Handling
  1111. ~~~~~~~~~~~~~~
  1112. In case of error, aria2 returns faultCode=1 and the error message in
  1113. faultString.
  1114. Options
  1115. ~~~~~~~
  1116. Same options for *-i* list are available. See *Input File* subsection
  1117. for complete list of options.
  1118. In the option struct, name element is option name(without preceding
  1119. "--") and value element is argument as string.
  1120. -------------------------------------------------
  1121. <struct>
  1122. <member>
  1123. <name>split</name>
  1124. <value><string>1</string></value>
  1125. </member>
  1126. <member>
  1127. <name>http-proxy</name>
  1128. <value><string>http://proxy/</string></value>
  1129. </member>
  1130. </struct>
  1131. -------------------------------------------------
  1132. *header* and *index-out* option are allowed multiple times in
  1133. command-line. Since name should be unique in struct(many XML-RPC
  1134. library implementation uses hash or dict for struct), single string is
  1135. not enough. To overcome this situation, they can take array as value
  1136. as well as string.
  1137. ---------------------------------------------------------------
  1138. <struct>
  1139. <member>
  1140. <name>header</name>
  1141. <value>
  1142. <array>
  1143. <data>
  1144. <value><string>Accept-Language: ja</string></value>
  1145. <value><string>Accept-Charset: utf-8</string></value>
  1146. </data>
  1147. </array>
  1148. </value>
  1149. </member>
  1150. </struct>
  1151. ---------------------------------------------------------------
  1152. Sample XML-RPC Client Code
  1153. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1154. The following Ruby script adds 'http://localhost/aria2.tar.bz2' to
  1155. aria2c operated on localhost with option *--dir*='/downloads' and
  1156. prints its reponse.
  1157. ----------------------------------------------
  1158. #!/usr/bin/env ruby
  1159. require 'xmlrpc/client'
  1160. require 'pp'
  1161. client=XMLRPC::Client.new2("http://localhost:6800/rpc")
  1162. options={ "dir" => "/downloads" }
  1163. result=client.call("aria2.addUri", [ "http://localhost/aria2.tar.bz2" ], options)
  1164. pp result
  1165. ----------------------------------------------
  1166. EXAMPLE
  1167. -------
  1168. HTTP/FTP Segmented Download
  1169. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1170. Download a file
  1171. ^^^^^^^^^^^^^^^
  1172. --------------------------------
  1173. aria2c "http://host/file.zip"
  1174. --------------------------------
  1175. [NOTE]
  1176. aria2 uses 5 connections to download 1 file by default.
  1177. Download a file using 1 connection
  1178. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1179. ----------------------------------
  1180. aria2c -s1 "http://host/file.zip"
  1181. ----------------------------------
  1182. [NOTE]
  1183. aria2 uses 5 connections to download 1 file by default.
  1184. -s1 limits the number of connections to just 1.
  1185. [NOTE]
  1186. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory. You can change URLs as long as they are pointing to the same file.
  1187. Download a file from 2 different HTTP servers
  1188. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1189. ------------------------------------------------------
  1190. aria2c "http://host/file.zip" "http://mirror/file.zip"
  1191. ------------------------------------------------------
  1192. Download a file from HTTP and FTP servers
  1193. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1194. -----------------------------------------------------
  1195. aria2c "http://host1/file.zip" "ftp://host2/file.zip"
  1196. -----------------------------------------------------
  1197. Download files listed in a text file concurrently
  1198. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1199. ------------------------
  1200. aria2c -ifiles.txt -j2
  1201. ------------------------
  1202. [NOTE]
  1203. -j option specifies the number of parallel downloads.
  1204. Using proxy
  1205. ^^^^^^^^^^^
  1206. For HTTP:
  1207. ----------------------------------------------------------
  1208. aria2c --http-proxy="http://proxy:8080" "http://host/file"
  1209. ----------------------------------------------------------
  1210. For FTP:
  1211. --------------------------------------------------------
  1212. aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"
  1213. --------------------------------------------------------
  1214. [NOTE]
  1215. See *--http-proxy*, *--https-proxy*, *--ftp-proxy* and *--all-proxy* for
  1216. details.
  1217. You can specify proxy in the environment variables. See *ENVIRONMENT* section.
  1218. Proxy with authorization
  1219. ^^^^^^^^^^^^^^^^^^^^^^^^
  1220. ----------------------------------------------------------------------------
  1221. aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
  1222. ----------------------------------------------------------------------------
  1223. Metalink Download
  1224. ~~~~~~~~~~~~~~~~~
  1225. Download files with remote Metalink
  1226. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1227. --------------------------------------------------------
  1228. aria2c --follow-metalink=mem "http://host/file.metalink"
  1229. --------------------------------------------------------
  1230. Download using a local metalink file
  1231. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1232. ----------------------------------------------------------
  1233. aria2c -p --lowest-speed-limit=4000 file.metalink
  1234. ----------------------------------------------------------
  1235. [NOTE]
  1236. To pause a download, press Ctrl-C.
  1237. You can resume the transfer by running aria2c with the same argument in the same
  1238. directory.
  1239. Download several local metalink files
  1240. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1241. ----------------------------------------
  1242. aria2c -j2 file1.metalink file2.metalink
  1243. ----------------------------------------
  1244. Download only selected files using index
  1245. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1246. -------------------------------------------
  1247. aria2c --select-file=1-4,8 file.metalink
  1248. -------------------------------------------
  1249. [NOTE]
  1250. The index is printed to the console using -S option.
  1251. Download a file using a local .metalink file with user preference
  1252. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1253. ------------------------------------------------------------------------------
  1254. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  1255. ------------------------------------------------------------------------------
  1256. BitTorrent Download
  1257. ~~~~~~~~~~~~~~~~~~~
  1258. Download files from remote BitTorrent file
  1259. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1260. ------------------------------------------------------
  1261. aria2c --follow-torrent=mem "http://host/file.torrent"
  1262. ------------------------------------------------------
  1263. Download using a local torrent file
  1264. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1265. ---------------------------------------------
  1266. aria2c --max-upload-limit=40K file.torrent
  1267. ---------------------------------------------
  1268. [NOTE]
  1269. --max-upload-limit specifies the max of upload rate.
  1270. [NOTE]
  1271. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.
  1272. Download using BitTorrent Magnet URI
  1273. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1274. ------------------------------------------------------------------------------
  1275. aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"
  1276. ------------------------------------------------------------------------------
  1277. [NOTE]
  1278. Don't forget to quote BitTorrent Magnet URI which includes "&"
  1279. character with single(') or double(") quotation.
  1280. Download 2 torrents
  1281. ^^^^^^^^^^^^^^^^^^^
  1282. --------------------------------------
  1283. aria2c -j2 file1.torrent file2.torrent
  1284. --------------------------------------
  1285. Download a file using torrent and HTTP/FTP server
  1286. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1287. ------------------------------------------------------------
  1288. aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"
  1289. ------------------------------------------------------------
  1290. [NOTE]
  1291. Downloading multi file torrent with HTTP/FTP is not supported.
  1292. Download only selected files using index(usually called "selectable download")
  1293. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1294. ---------------------------------------
  1295. aria2c --select-file=1-4,8 file.torrent
  1296. ---------------------------------------
  1297. [NOTE]
  1298. The index is printed to the console using -S option.
  1299. Specify output filename
  1300. ^^^^^^^^^^^^^^^^^^^^^^^
  1301. To specify output filename for BitTorrent downloads, you need to know
  1302. the index of file in torrent file using *-S* option. For example, the
  1303. output looks like this:
  1304. --------------------------
  1305. idx|path/length
  1306. ===+======================
  1307. 1|dist/base-2.6.18.iso
  1308. |99.9MiB
  1309. ---+----------------------
  1310. 2|dist/driver-2.6.18.iso
  1311. |169.0MiB
  1312. ---+----------------------
  1313. --------------------------
  1314. To save 'dist/base-2.6.18.iso' in '/tmp/mydir/base.iso' and
  1315. 'dist/driver-2.6.18.iso' in '/tmp/dir/driver.iso', use the following
  1316. command:
  1317. -----------------------------------------------------------------------------------------
  1318. aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent
  1319. -----------------------------------------------------------------------------------------
  1320. Change the listening port for incoming peer
  1321. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1322. ---------------------------------------------------
  1323. aria2c --listen-port=7000-7001,8000 file.torrent
  1324. ---------------------------------------------------
  1325. [NOTE]
  1326. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  1327. to you to do it manually.
  1328. Specify the condition to stop program after torrent download finished
  1329. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1330. -------------------------------------------------------
  1331. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  1332. -------------------------------------------------------
  1333. [NOTE]
  1334. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  1335. Throttle upload speed
  1336. ^^^^^^^^^^^^^^^^^^^^^
  1337. ----------------------------------------------
  1338. aria2c --max-upload-limit=100K file.torrent
  1339. ----------------------------------------------
  1340. Enable DHT
  1341. ^^^^^^^^^^
  1342. ---------------------------------------------------------
  1343. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  1344. ---------------------------------------------------------
  1345. [NOTE]
  1346. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  1347. forwarding, it's up to you to do it manually.
  1348. More advanced HTTP features
  1349. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1350. Load cookies
  1351. ^^^^^^^^^^^^
  1352. --------------------------------------------------------
  1353. aria2c --load-cookies=cookies.txt "http://host/file.zip"
  1354. --------------------------------------------------------
  1355. [NOTE]
  1356. You can use Firefox/Mozilla's cookie file without modification.
  1357. Resume download started by web browsers or another programs
  1358. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1359. -------------------------------------------------------
  1360. aria2c -c -s2 "http://host/partiallydownloadedfile.zip"
  1361. -------------------------------------------------------
  1362. Client certificate authorization for SSL/TLS
  1363. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1364. ------------------------------------------------------------------------------------------
  1365. aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file
  1366. ------------------------------------------------------------------------------------------
  1367. [NOTE]
  1368. The file specified in *--private-key* must be decrypted. The behavior when
  1369. encrypted one is given is undefined.
  1370. Verify peer in SSL/TLS using given CA certificates
  1371. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1372. ------------------------------------------------------------------------------------------
  1373. aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file
  1374. ------------------------------------------------------------------------------------------
  1375. And more advanced features
  1376. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1377. Throttle download speed
  1378. ^^^^^^^^^^^^^^^^^^^^^^^
  1379. -------------------------------------------------
  1380. aria2c --max-download-limit=100K file.metalink
  1381. -------------------------------------------------
  1382. Repair a damaged download
  1383. ^^^^^^^^^^^^^^^^^^^^^^^^^
  1384. -----------------------
  1385. aria2c -V file.metalink
  1386. -----------------------
  1387. [NOTE]
  1388. This option is only available used with BitTorrent or metalink with chunk
  1389. checksums.
  1390. Drop connection if download speed is lower than specified value
  1391. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1392. ------------------------------------------------
  1393. aria2c --lowest-speed-limit=10K file.metalink
  1394. ------------------------------------------------
  1395. Parameterized URI support
  1396. ^^^^^^^^^^^^^^^^^^^^^^^^^
  1397. You can specify set of parts:
  1398. -----------------------------------------------
  1399. aria2c -P "http://{host1,host2,host3}/file.iso"
  1400. -----------------------------------------------
  1401. You can specify numeric sequence:
  1402. ---------------------------------------------
  1403. aria2c -Z -P "http://host/image[000-100].png"
  1404. ---------------------------------------------
  1405. [NOTE]
  1406. -Z option is required if the all URIs don't point to the same file, such as the above example.
  1407. You can specify step counter:
  1408. -------------------------------------------
  1409. aria2c -Z -P "http://host/image[A-Z:2].png"
  1410. -------------------------------------------
  1411. Parallel downloads of arbitrary number of URL,metalink,torrent
  1412. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1413. --------------------------------------------------------------
  1414. aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink
  1415. --------------------------------------------------------------
  1416. BitTorrent Encryption
  1417. ^^^^^^^^^^^^^^^^^^^^^
  1418. Encrypt whole payload using ARC4:
  1419. -------------------------------------------------------------------------
  1420. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  1421. -------------------------------------------------------------------------
  1422. SEE ALSO
  1423. --------
  1424. Project Web Site: http://aria2.sourceforge.net/
  1425. aria2 Wiki: http://sourceforge.net/apps/trac/aria2/wiki
  1426. Metalink Homepage: http://www.metalinker.org/
  1427. COPYRIGHT
  1428. ---------
  1429. Copyright (C) 2006, 2009 Tatsuhiro Tsujikawa
  1430. This program is free software; you can redistribute it and/or modify
  1431. it under the terms of the GNU General Public License as published by
  1432. the Free Software Foundation; either version 2 of the License, or
  1433. (at your option) any later version.
  1434. This program is distributed in the hope that it will be useful,
  1435. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1436. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1437. GNU General Public License for more details.
  1438. You should have received a copy of the GNU General Public License
  1439. along with this program; if not, write to the Free Software
  1440. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  1441. In addition, as a special exception, the copyright holders give
  1442. permission to link the code of portions of this program with the
  1443. OpenSSL library under certain conditions as described in each
  1444. individual source file, and distribute linked combinations
  1445. including the two.
  1446. You must obey the GNU General Public License in all respects
  1447. for all of the code used other than OpenSSL. If you modify
  1448. file(s) with this exception, you may extend this exception to your
  1449. version of the file(s), but you are not obligated to do so. If you
  1450. do not wish to do so, delete this exception statement from your
  1451. version. If you delete this exception statement from all source
  1452. files in the program, then also delete it here.