aria2c.1 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 02/02/2009
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "02/02/2009" "" ""
  9. .\" disable hyphenation
  10. .nh
  11. .\" disable justification (adjust text to left margin only)
  12. .ad l
  13. .SH "NAME"
  14. aria2c \- The ultra fast download utility
  15. .SH "SYNOPSIS"
  16. aria2c [\fIOPTIONS\fR] [\fIURL\fR | \fITORRENT_FILE\fR | \fIMETALINK_FILE\fR]\&...
  17. .sp
  18. .SH "DESCRIPTION"
  19. aria2 is a utility for downloading files\&. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink\&. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth\&. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm\&. Using Metalink\'s chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent\&.
  20. .sp
  21. .SH "OPTIONS"
  22. .SS "Basic Options"
  23. .PP
  24. \fB\-d\fR, \fB\-\-dir\fR=DIR
  25. .RS 4
  26. The directory to store the downloaded file\&.
  27. .RE
  28. .PP
  29. \fB\-i\fR, \fB\-\-input\-file\fR=FILE
  30. .RS 4
  31. Downloads URIs found in FILE\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&. Reads input from stdin when
  32. \fI\-\fR
  33. is specified\&. The additional
  34. \fBout\fR
  35. and
  36. \fBdir\fR
  37. options can be specified after each line of URIs\&. This optional line must start with white space(s)\&. See INPUT FILE section for details\&.
  38. .RE
  39. .PP
  40. \fB\-l\fR, \fB\-\-log\fR=LOG
  41. .RS 4
  42. The file name of the log file\&. If
  43. \fI\-\fR
  44. is specified, log is written to stdout\&.
  45. .RE
  46. .PP
  47. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  48. .RS 4
  49. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. See also
  50. \fB\-s\fR
  51. and
  52. \fB\-C\fR
  53. option\&. Default:
  54. \fI5\fR
  55. .RE
  56. .PP
  57. \fB\-V\fR, \fB\-\-check\-integrity\fR[=\fItrue\fR|\fIfalse\fR]
  58. .RS 4
  59. Check file integrity by validating piece hashes\&. This option has effect only in BitTorrent and Metalink downloads with chunk checksums\&. Use this option to re\-download a damaged portion of a file\&. Default:
  60. \fIfalse\fR
  61. .RE
  62. .PP
  63. \fB\-c\fR, \fB\-\-continue\fR
  64. .RS 4
  65. Continue downloading a partially downloaded file\&. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\&. Currently this option is only applicable to HTTP(S)/FTP downloads\&.
  66. .RE
  67. .PP
  68. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  69. .RS 4
  70. Print usage and exit\&. The help messages are classified in several categories\&. For example, type "\fB\-\-help\fR=http" for detailed explanation for the options related to HTTP\&. If no matching category is found, search option name using a given word in middle match and print the result\&. Available Values:
  71. \fIbasic\fR,
  72. \fIadvanced\fR,
  73. \fIhttp\fR,
  74. \fIhttps\fR,
  75. \fIftp\fR,
  76. \fImetalink\fR,
  77. \fIbittorrent\fR,
  78. \fIall\fR
  79. Default:
  80. \fIbasic\fR
  81. .RE
  82. .SS "HTTP/FTP Options"
  83. .PP
  84. \fB\-\-all\-proxy\fR=PROXY
  85. .RS 4
  86. Use this proxy server for all protocols\&. You can override this setting and specify a proxy server for a particular protocol using
  87. \fB\-\-http\-proxy\fR,
  88. \fB\-\-https\-proxy\fR
  89. and
  90. \fB\-\-ftp\-proxy\fR
  91. options\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  92. .RE
  93. .PP
  94. \fB\-\-connect\-timeout\fR=SEC
  95. .RS 4
  96. Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server\&. After the connection is established, this option makes no effect and
  97. \fB\-\-timeout\fR
  98. option is used instead\&. Default:
  99. \fI60\fR
  100. .RE
  101. .PP
  102. \fB\-\-lowest\-speed\-limit\fR=SPEED
  103. .RS 4
  104. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  105. \fI0\fR
  106. means aria2 does not have a lowest speed limit\&. You can append
  107. \fIK\fR
  108. or
  109. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  110. \fI0\fR
  111. .RE
  112. .PP
  113. \fB\-\-max\-file\-not\-found\fR=NUM
  114. .RS 4
  115. If aria2 receives `file not found\' status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  116. \fI0\fR
  117. to disable this option\&. This options is effective only when using HTTP/FTP servers\&. Default:
  118. \fI0\fR
  119. .RE
  120. .PP
  121. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  122. .RS 4
  123. Set number of tries\&.
  124. \fI0\fR
  125. means unlimited\&. Default:
  126. \fI5\fR
  127. .RE
  128. .PP
  129. \fB\-\-no\-proxy\fR=DOMAINS
  130. .RS 4
  131. Specify comma separated hostnames or domains where proxy should not be used\&.
  132. .RE
  133. .PP
  134. \fB\-o\fR, \fB\-\-out\fR=FILE
  135. .RS 4
  136. The file name of the downloaded file\&.
  137. .RE
  138. .sp
  139. .it 1 an-trap
  140. .nr an-no-space-flag 1
  141. .nr an-break-flag 1
  142. .br
  143. Note
  144. In Metalink or BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 are done by command line without \fB\-i\fR, \fB\-Z\fR option\&. For example: aria2c \-o myfile\&.zip http://mirror1/file\&.zip http://mirror2/file\&.zip
  145. .PP
  146. \fB\-\-proxy\-method\fR=METHOD
  147. .RS 4
  148. Set the method to use in proxy request\&.
  149. \fIMETHOD\fR
  150. is either
  151. \fIget\fR
  152. or
  153. \fItunnel\fR\&. Default:
  154. \fItunnel\fR
  155. .RE
  156. .PP
  157. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  158. .RS 4
  159. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  160. \fIfalse\fR
  161. .RE
  162. .PP
  163. \fB\-\-retry\-wait\fR=SEC
  164. .RS 4
  165. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  166. \fI0\fR
  167. and
  168. \fI60\fR\&. Default:
  169. \fI5\fR
  170. .RE
  171. .PP
  172. \fB\-\-server\-stat\-of\fR=FILE
  173. .RS 4
  174. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  175. \fB\-\-server\-stat\-if\fR
  176. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  177. .RE
  178. .PP
  179. \fB\-\-server\-stat\-if\fR=FILE
  180. .RS 4
  181. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  182. \fIfeedback\fR\&. See also
  183. \fB\-\-uri\-selector\fR
  184. option\&. See SERVER PERFORMANCE PROFILE section below for file format\&.
  185. .RE
  186. .PP
  187. \fB\-\-server\-stat\-timeout\fR=SEC
  188. .RS 4
  189. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  190. \fI86400\fR
  191. (24hours)
  192. .RE
  193. .PP
  194. \fB\-s\fR, \fB\-\-split\fR=N
  195. .RS 4
  196. Download a file using N connections\&. If more than N URLs are given, first N URLs are used and remaining URLs are used for backup\&. If less than N URLs are given, those URLs are used more than once so that N connections total are made simultaneously\&. Please see
  197. \fB\-j\fR
  198. option too\&. Please note that in Metalink download, this option has no effect and use
  199. \fB\-C\fR
  200. option instead\&. Default:
  201. \fI5\fR
  202. .RE
  203. .PP
  204. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  205. .RS 4
  206. Set timeout in seconds\&. Default:
  207. \fI60\fR
  208. .RE
  209. .PP
  210. \fB\-\-uri\-selector\fR=SELECTOR
  211. .RS 4
  212. Specify URI selection algorithm\&. The possible values are
  213. \fIinorder\fR,
  214. \fIfeedback\fR
  215. and
  216. \fIadaptive\fR\&. If
  217. \fIinorder\fR
  218. is given, URI is tried in the order appeared in the URI list\&. If
  219. \fIfeedback\fR
  220. is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list\&. This also effectively skips dead mirrors\&. The observed download speed is a part of performance profile of servers mentioned in
  221. \fB\-\-server\-stat\-of\fR
  222. and
  223. \fB\-\-server\-stat\-if\fR
  224. options\&. If
  225. \fIadaptive\fR
  226. is given, selects one of the best mirrors for the first and reserved connections\&. For supplementary ones, it returns mirrors which has not been tested yet, and if each of them has already been tested, returns mirrors which has to be tested again\&. Otherwise, it doesn\'t select anymore mirrors\&. Like
  227. \fIfeedback\fR, it uses a performance profile of servers\&. Default:
  228. \fIinorder\fR
  229. .RE
  230. .SS "HTTP Specific Options"
  231. .PP
  232. \fB\-\-ca\-certificate\fR=FILE
  233. .RS 4
  234. Use the certificate authorities in FILE to verify the peers\&. The certificate file must be in PEM format and can contain multiple CA certificates\&. Use
  235. \fB\-\-check\-certificate\fR
  236. option to enable verification\&.
  237. .RE
  238. .PP
  239. \fB\-\-certificate\fR=FILE
  240. .RS 4
  241. Use the client certificate in FILE\&. The certificate must be in PEM format\&. You may use
  242. \fB\-\-private\-key\fR
  243. option to specify the private key\&.
  244. .RE
  245. .PP
  246. \fB\-\-check\-certificate\fR[=\fItrue\fR|\fIfalse\fR]
  247. .RS 4
  248. Verify the peer using certificates specified in
  249. \fB\-\-ca\-certificate\fR
  250. option\&. Default:
  251. \fItrue\fR
  252. .RE
  253. .PP
  254. \fB\-\-http\-auth\-scheme\fR=SCHEME
  255. .RS 4
  256. Set HTTP authentication scheme\&. Currently,
  257. \fIbasic\fR
  258. is the only supported scheme\&. Default:
  259. \fIbasic\fR
  260. .RE
  261. .PP
  262. \fB\-\-http\-user\fR=USER
  263. .RS 4
  264. Set HTTP user\&. This affects all URLs\&.
  265. .RE
  266. .PP
  267. \fB\-\-http\-passwd\fR=PASSWD
  268. .RS 4
  269. Set HTTP password\&. This affects all URLs\&.
  270. .RE
  271. .PP
  272. \fB\-\-http\-proxy\fR=PROXY
  273. .RS 4
  274. Use this proxy server for HTTP\&. See also
  275. \fB\-\-all\-proxy\fR
  276. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  277. .RE
  278. .PP
  279. \fB\-\-https\-proxy\fR=PROXY
  280. .RS 4
  281. Use this proxy server for HTTPS\&. See also
  282. \fB\-\-all\-proxy\fR
  283. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  284. .RE
  285. .PP
  286. \fB\-\-private\-key\fR=FILE
  287. .RS 4
  288. Use the private key in FILE\&. The private key must be decrypted and in PEM format\&. The behavior when encrypted one is given is undefined\&. See also
  289. \fB\-\-certificate\fR
  290. option\&.
  291. .RE
  292. .PP
  293. \fB\-\-referer\fR=REFERER
  294. .RS 4
  295. Set Referer\&. This affects all URLs\&.
  296. .RE
  297. .PP
  298. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  299. .RS 4
  300. Enable HTTP/1\&.1 persistent connection\&. Default:
  301. \fItrue\fR
  302. .RE
  303. .PP
  304. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  305. .RS 4
  306. Enable HTTP/1\&.1 pipelining\&. Default:
  307. \fIfalse\fR
  308. .RE
  309. .PP
  310. \fB\-\-header\fR=HEADER
  311. .RS 4
  312. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  313. \fB\-\-header\fR="X\-A: b78"
  314. \fB\-\-header\fR="X\-B: 9J1" http://host/file
  315. .RE
  316. .PP
  317. \fB\-\-load\-cookies\fR=FILE
  318. .RS 4
  319. Load Cookies from FILE using the Firefox3 format (SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  320. .RE
  321. .sp
  322. .it 1 an-trap
  323. .nr an-no-space-flag 1
  324. .nr an-break-flag 1
  325. .br
  326. Note
  327. If aria2 is built without libsqlite3, then it doesn\'t support Firefox3 cookie format\&.
  328. .PP
  329. \fB\-\-use\-head\fR[=\fItrue\fR|\fIfalse\fR]
  330. .RS 4
  331. Use HEAD method for the first request to the HTTP server\&. Default:
  332. \fItrue\fR
  333. .RE
  334. .PP
  335. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  336. .RS 4
  337. Set user agent for HTTP(S) downloads\&.
  338. .RE
  339. .SS "FTP Specific Options"
  340. .PP
  341. \fB\-\-ftp\-user\fR=USER
  342. .RS 4
  343. Set FTP user\&. This affects all URLs\&. Default:
  344. \fIanonymous\fR
  345. .RE
  346. .PP
  347. \fB\-\-ftp\-passwd\fR=PASSWD
  348. .RS 4
  349. Set FTP password\&. This affects all URLs\&. Default:
  350. \fIARIA2USER@\fR
  351. .RE
  352. .PP
  353. \fB\-p\fR, \fB\-\-ftp\-pasv\fR[=\fItrue\fR|\fIfalse\fR]
  354. .RS 4
  355. Use the passive mode in FTP\&. If
  356. \fIfalse\fR
  357. is given, the active mode will be used\&. Default:
  358. \fItrue\fR
  359. .RE
  360. .PP
  361. \fB\-\-ftp\-proxy\fR=PROXY
  362. .RS 4
  363. Use this proxy server for FTP\&. See also
  364. \fB\-\-all\-proxy\fR
  365. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  366. .RE
  367. .PP
  368. \fB\-\-ftp\-type\fR=TYPE
  369. .RS 4
  370. Set FTP transfer type\&. TYPE is either
  371. \fIbinary\fR
  372. or
  373. \fIascii\fR\&. Default:
  374. \fIbinary\fR
  375. .RE
  376. .PP
  377. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  378. .RS 4
  379. Reuse connection in FTP\&. Default:
  380. \fItrue\fR
  381. .RE
  382. .PP
  383. \fB\-n\fR, \fB\-\-no\-netrc\fR
  384. .RS 4
  385. Disables netrc support\&. netrc support is enabled by default\&.
  386. .RE
  387. .SS "BitTorrent/Metalink Options"
  388. .PP
  389. \fB\-\-select\-file\fR=INDEX\&...
  390. .RS 4
  391. Set file to download by specifying its index\&. You can find the file index using the
  392. \fB\-\-show\-files\fR
  393. option\&. Multiple indexes can be specified by using ",", for example:
  394. \fI3,6\fR\&. You can also use "\-" to specify a range:
  395. \fI1\-5\fR\&. "," and "\-" can be used together:
  396. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  397. \fB\-\-metalink\-\fR* options)\&.
  398. .RE
  399. .sp
  400. .it 1 an-trap
  401. .nr an-no-space-flag 1
  402. .nr an-break-flag 1
  403. .br
  404. Note
  405. In multi file torrent, the adjacent files specified by this option may also be downloaded\&. This is by design, not a bug\&. A single piece may include several files or part of files, and aria2 writes the piece to the appropriate files\&.
  406. .PP
  407. \fB\-S\fR, \fB\-\-show\-files\fR
  408. .RS 4
  409. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  410. .RE
  411. .SS "BitTorrent Specific Options"
  412. .PP
  413. \fB\-\-bt\-hash\-check\-seed\fR[=\fItrue\fR|\fIfalse\fR]
  414. .RS 4
  415. If
  416. \fItrue\fR
  417. is given, after hash check using
  418. \fB\-\-check\-integrity\fR
  419. option and file is complete, continue to seed file\&. If you want to check file and download it only when it is damaged or incomplete, set this option to
  420. \fIfalse\fR\&. This option has effect only on BitTorrent download\&. Default:
  421. \fItrue\fR
  422. .RE
  423. .PP
  424. \fB\-\-bt\-max\-open\-files\fR=NUM
  425. .RS 4
  426. Specify maximum number of files to open in each BitTorrent download\&. Default:
  427. \fI100\fR
  428. .RE
  429. .PP
  430. \fB\-\-bt\-max\-peers\fR=NUM
  431. .RS 4
  432. Specify the maximum number of peers per torrent\&.
  433. \fI0\fR
  434. means unlimited\&. See also
  435. \fB\-\-bt\-request\-peer\-speed\-limit\fR
  436. option\&. Default:
  437. \fI55\fR
  438. .RE
  439. .PP
  440. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  441. .RS 4
  442. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level\&. Default:
  443. \fIplain\fR
  444. .RE
  445. .PP
  446. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  447. .RS 4
  448. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  449. \fIfalse\fR
  450. .RE
  451. .PP
  452. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  453. .RS 4
  454. If the whole download speed of every torrent is lower than SPEED, aria2 temporarily increases the number of peers to try for more download speed\&. Configuring this option with your preferred download speed can increase your download speed in some cases\&. You can append
  455. \fIK\fR
  456. or
  457. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  458. \fI50K\fR
  459. .RE
  460. .PP
  461. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  462. .RS 4
  463. Seed previously downloaded files without verifying piece hashes\&. Default:
  464. \fIfalse\fR
  465. .RE
  466. .PP
  467. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  468. .RS 4
  469. Set host and port as an entry point to DHT network\&.
  470. .RE
  471. .PP
  472. \fB\-\-dht\-file\-path\fR=PATH
  473. .RS 4
  474. Change the DHT routing table file to PATH\&. Default:
  475. \fI$HOME/\&.aria2/dht\&.dat\fR
  476. .RE
  477. .PP
  478. \fB\-\-dht\-listen\-port\fR=PORT\&...
  479. .RS 4
  480. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  481. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  482. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  483. \fI6881\-6999\fR
  484. .RE
  485. .sp
  486. .it 1 an-trap
  487. .nr an-no-space-flag 1
  488. .nr an-break-flag 1
  489. .br
  490. Note
  491. Make sure that the specified ports are open for incoming UDP traffic\&.
  492. .PP
  493. \fB\-\-direct\-file\-mapping\fR=\fItrue\fR|\fIfalse\fR
  494. .RS 4
  495. Directly read from and write to each file mentioned in \&.torrent file\&. Use this option if lots of files are listed in \&.torrent file and aria2 complains it cannot open files anymore\&. Default:
  496. \fItrue\fR
  497. .RE
  498. .PP
  499. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  500. .RS 4
  501. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  502. \fItrue\fR
  503. is given\&. Default:
  504. \fIfalse\fR
  505. .RE
  506. .PP
  507. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  508. .RS 4
  509. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  510. \fItrue\fR
  511. is given\&. Default:
  512. \fItrue\fR
  513. .RE
  514. .PP
  515. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  516. .RS 4
  517. If
  518. \fItrue\fR
  519. or
  520. \fImem\fR
  521. is specified, when a file whose suffix is "\&.torrent" or content type is "application/x\-bittorrent" is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\&. If
  522. \fImem\fR
  523. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  524. \fIfalse\fR
  525. is specified, the action mentioned above is not taken\&. Default:
  526. \fItrue\fR
  527. .RE
  528. .PP
  529. \fB\-\-listen\-port\fR=PORT\&...
  530. .RS 4
  531. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  532. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  533. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  534. \fI6881\-6889,6999\fR\&. Default:
  535. \fI6881\-6999\fR
  536. .RE
  537. .sp
  538. .it 1 an-trap
  539. .nr an-no-space-flag 1
  540. .nr an-break-flag 1
  541. .br
  542. Note
  543. Make sure that the specified ports are open for incoming TCP traffic\&.
  544. .PP
  545. \fB\-\-max\-overall\-upload\-limit\fR=SPEED
  546. .RS 4
  547. Set max overall upload speed in bytes/sec\&.
  548. \fI0\fR
  549. means unrestricted\&. You can append
  550. \fIK\fR
  551. or
  552. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the upload speed per torrent, use
  553. \fB\-\-max\-upload\-limit\fR
  554. option\&. If non\-zero value is specified,
  555. \fB\-\-max\-upload\-limit\fR
  556. option is ignored\&. Default:
  557. \fI0\fR
  558. .RE
  559. .PP
  560. \fB\-u\fR, \fB\-\-max\-upload\-limit\fR=SPEED
  561. .RS 4
  562. Set max upload speed per each torrent in bytes/sec\&.
  563. \fI0\fR
  564. means unrestricted\&. You can append
  565. \fIK\fR
  566. or
  567. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall upload speed, use
  568. \fB\-\-max\-overall\-upload\-limit\fR
  569. option\&. Default:
  570. \fI0\fR
  571. .RE
  572. .PP
  573. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  574. .RS 4
  575. Specify the prefix of peer ID\&. The peer ID in BitTorrent is 20 byte length\&. If more than 20 bytes are specified, only first 20 bytes are used\&. If less than 20 bytes are specified, the random alphabet characters are added to make it\'s length 20 bytes\&. Default:
  576. \fI\-aria2\-\fR
  577. .RE
  578. .PP
  579. \fB\-\-seed\-ratio\fR=RATIO
  580. .RS 4
  581. Specify share ratio\&. Seed completed torrents until share ratio reaches RATIO\&. You are strongly encouraged to specify equals or more than
  582. \fI1\&.0\fR
  583. here\&. Specify
  584. \fI0\&.0\fR
  585. if you intend to do seeding regardless of share ratio\&. If
  586. \fB\-\-seed\-time\fR
  587. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  588. \fI1\&.0\fR
  589. .RE
  590. .PP
  591. \fB\-\-seed\-time\fR=MINUTES
  592. .RS 4
  593. Specify seeding time in minutes\&. Also see the
  594. \fB\-\-seed\-ratio\fR
  595. option\&.
  596. .RE
  597. .PP
  598. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  599. .RS 4
  600. The path to the \&.torrent file\&. You are not required to use this option because you can specify a torrent file without \-T\&.
  601. .RE
  602. .SS "Metalink Specific Options"
  603. .PP
  604. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  605. .RS 4
  606. If
  607. \fItrue\fR
  608. or
  609. \fImem\fR
  610. is specified, when a file whose suffix is "\&.metaink" or content type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  611. \fImem\fR
  612. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  613. \fIfalse\fR
  614. is specified, the action mentioned above is not taken\&. Default:
  615. \fItrue\fR
  616. .RE
  617. .PP
  618. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  619. .RS 4
  620. The file path to \&.metalink file\&. You are not required to use this option because you can specify a metalink file without \-M\&.
  621. .RE
  622. .PP
  623. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  624. .RS 4
  625. The number of servers to connect to simultaneously\&. Some Metalinks regulate the number of servers to connect\&. aria2 strictly respects them\&. This means that if Metalink defines the maxconnections attribute lower than NUM_SERVERS, then aria2 uses the value of maxconnections attribute instead of NUM_SERVERS\&. See also
  626. \fB\-s\fR
  627. and
  628. \fB\-j\fR
  629. options\&. Default:
  630. \fI5\fR
  631. .RE
  632. .PP
  633. \fB\-\-metalink\-language\fR=LANGUAGE
  634. .RS 4
  635. The language of the file to download\&.
  636. .RE
  637. .PP
  638. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  639. .RS 4
  640. The location of the preferred server\&. A comma\-delimited list of locations is acceptable, for example,
  641. \fIJP,US\fR\&.
  642. .RE
  643. .PP
  644. \fB\-\-metalink\-os\fR=OS
  645. .RS 4
  646. The operating system of the file to download\&.
  647. .RE
  648. .PP
  649. \fB\-\-metalink\-version\fR=VERSION
  650. .RS 4
  651. The version of the file to download\&.
  652. .RE
  653. .PP
  654. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  655. .RS 4
  656. Specify preferred protocol\&. The possible values are
  657. \fIhttp\fR,
  658. \fIhttps\fR,
  659. \fIftp\fR
  660. and
  661. \fInone\fR\&. Specify
  662. \fInone\fR
  663. to disable this feature\&. Default:
  664. \fInone\fR
  665. .RE
  666. .PP
  667. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  668. .RS 4
  669. If
  670. \fItrue\fR
  671. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  672. \fB\-\-metalink\-preferred\-protocol\fR
  673. option to specify the preference of protocol\&. Default:
  674. \fItrue\fR
  675. .RE
  676. .SS "Advanced Options"
  677. .PP
  678. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  679. .RS 4
  680. If
  681. \fIfalse\fR
  682. is given, aria2 doesn\'t download a file which already exists but the corresponding \&.aria2 file doesn\'t exist\&. In HTTP(S)/FTP download, if
  683. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  684. then, file name will be renamed\&. See
  685. \fB\-\-auto\-file\-renaming\fR
  686. for details\&. Default:
  687. \fIfalse\fR
  688. .RE
  689. .PP
  690. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  691. .RS 4
  692. If false is given, aria2 aborts download when a piece length is different from one in a control file\&. If true is given, you can proceed but some download progress will be lost\&. Default:
  693. \fIfalse\fR
  694. .RE
  695. .PP
  696. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  697. .RS 4
  698. Enable asynchronous DNS\&. Default:
  699. \fItrue\fR
  700. .RE
  701. .PP
  702. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  703. .RS 4
  704. Rename file name if the same file already exists\&. This option works only in HTTP(S)/FTP download\&. The new file name has a dot and a number(1\&.\&.9999) appended\&. Default:
  705. \fItrue\fR
  706. .RE
  707. .PP
  708. \fB\-\-auto\-save\-interval\fR=SEC
  709. .RS 4
  710. Save a control file(*\&.aria2) every SEC seconds\&. If
  711. \fI0\fR
  712. is given, a control file is not saved during download\&. aria2 saves a control file when it stops regardless of the value\&. The possible values are between
  713. \fI0\fR
  714. to
  715. \fI600\fR\&. Default:
  716. \fI60\fR
  717. .RE
  718. .PP
  719. \fB\-\-conf\-path\fR=PATH
  720. .RS 4
  721. Change the configuration file path to PATH\&. Default:
  722. \fI$HOME/\&.aria2/aria2\&.conf\fR
  723. .RE
  724. .PP
  725. \fB\-D\fR, \fB\-\-daemon\fR
  726. .RS 4
  727. Run as daemon\&.
  728. .RE
  729. .PP
  730. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  731. .RS 4
  732. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  733. \fItrue\fR
  734. .RE
  735. .PP
  736. \fB\-\-enable\-http\-server\fR[=\fItrue\fR|\fIfalse\fR]
  737. .RS 4
  738. Enable the built\-in HTTP server\&. Currently, this is the experimental feature and it just provides the current download progress\&. Use your web browser(console\-based ones, such as elinks, w3m, are recommended) to connect the server and see what\'s what\&. See also
  739. \fB\-\-http\-server\-listen\-port\fR
  740. option\&. Default:
  741. \fIfalse\fR
  742. .RE
  743. .PP
  744. \fB\-\-event\-poll\fR=POLL
  745. .RS 4
  746. Specify the method for polling events\&. The possible Values are
  747. \fIepoll\fR
  748. and
  749. \fIselect\fR\&. If you use recent Linux that has epoll, then the default value is
  750. \fIepoll\fR\&. Otherwise, the default value is
  751. \fIselect\fR\&.
  752. .RE
  753. .PP
  754. \fB\-\-file\-allocation\fR=METHOD
  755. .RS 4
  756. Specify file allocation method\&. METHOD is either
  757. \fInone\fR
  758. or
  759. \fIprealloc\fR\&.
  760. \fInone\fR
  761. doesn\'t pre\-allocate file space\&.
  762. \fIprealloc\fR
  763. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  764. \fIprealloc\fR
  765. .RE
  766. .PP
  767. \fB\-\-log\-level\fR=LEVEL
  768. .RS 4
  769. Set log level to output\&. LEVEL is either
  770. \fIdebug\fR,
  771. \fIinfo\fR,
  772. \fInotice\fR,
  773. \fIwarn\fR
  774. or
  775. \fIerror\fR\&. Default:
  776. \fIdebug\fR
  777. .RE
  778. .PP
  779. \fB\-\-summary\-interval\fR=SEC
  780. .RS 4
  781. Set interval in seconds to output download progress summary\&. Setting
  782. \fI0\fR
  783. suppresses the output\&. Default:
  784. \fI60\fR
  785. .RE
  786. .sp
  787. .it 1 an-trap
  788. .nr an-no-space-flag 1
  789. .nr an-break-flag 1
  790. .br
  791. Note
  792. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  793. .PP
  794. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  795. .RS 4
  796. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  797. \fIfalse\fR
  798. .RE
  799. .PP
  800. \fB\-\-http\-server\-listen\-port\fR=PORT
  801. .RS 4
  802. Specify a port number for the built\-in HTTP Server to listen to\&. See also
  803. \fB\-\-enable\-http\-server\fR
  804. option\&. The possible Values are
  805. \fI1024\fR\-\fI65535\fR\&. Default:
  806. \fI6800\fR
  807. .RE
  808. .PP
  809. \fB\-\-max\-download\-limit\fR=SPEED
  810. .RS 4
  811. Set max download speed in bytes per sec\&.
  812. \fI0\fR
  813. means unrestricted\&. You can append
  814. \fIK\fR
  815. or
  816. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  817. \fI0\fR
  818. .RE
  819. .PP
  820. \fB\-\-no\-conf\fR
  821. .RS 4
  822. Disable loading aria2\&.conf file\&.
  823. .RE
  824. .PP
  825. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  826. .RS 4
  827. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  828. \fIK\fR
  829. or
  830. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  831. \fI5M\fR
  832. .RE
  833. .PP
  834. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  835. .RS 4
  836. Enable parameterized URI support\&. You can specify set of parts:
  837. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  838. \fIhttp://host/image[000\-100:2]\&.img\fR\&. A step counter can be omitted\&. If all URIs do not point to the same file, such as the second example above, \-Z option is required\&. Default:
  839. \fIfalse\fR
  840. .RE
  841. .PP
  842. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  843. .RS 4
  844. Make aria2 quiet (no console output)\&. Default:
  845. \fIfalse\fR
  846. .RE
  847. .PP
  848. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  849. .RS 4
  850. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  851. \fItrue\fR
  852. .RE
  853. .PP
  854. \fB\-\-stop\fR=SEC
  855. .RS 4
  856. Stop application after SEC seconds has passed\&. If
  857. \fI0\fR
  858. is given, this feature is disabled\&. Default:
  859. \fI0\fR
  860. .RE
  861. .PP
  862. \fB\-v\fR, \fB\-\-version\fR
  863. .RS 4
  864. Print the version number, copyright and the configuration information and exit\&.
  865. .RE
  866. .SS "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT"
  867. The options that have its argument surrounded by square brackets([]) take an optional argument\&. Usually omiting the argument is evaluated to \fItrue\fR\&. If you use short form of these options(such as \fI\-V\fR) and give an argument, then the option name and its argument should be concatenated(e\&.g\&. \fI\-Vfalse\fR)\&. If any spaces are inserted between the option name and the argument, the argument will be treated as URI and usually this is not what you expect\&.
  868. .sp
  869. .SS "URL, TORRENT_FILE, METALINK_FILE"
  870. You can specify multiple URLs in command\-line\&. Unless you specify \fB\-Z\fR option, all URLs must point to the same file or downloading will fail\&.
  871. .sp
  872. You can also specify arbitrary number of torrent files and metalink files stored on a local drive\&. Please note that they are always treated as a separate download\&.
  873. .sp
  874. You can specify both torrent file with \-T option and URLs\&. By doing this, you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time, while the data from HTTP(S)/FTP are uploaded to the torrent swarm\&. Note that only single file torrent can be integrated with HTTP(S)/FTP\&.
  875. .sp
  876. .sp
  877. .it 1 an-trap
  878. .nr an-no-space-flag 1
  879. .nr an-break-flag 1
  880. .br
  881. Note
  882. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  883. .sp
  884. .SH "EXAMPLES"
  885. .SS "HTTP/FTP Segmented Download"
  886. .sp
  887. .it 1 an-trap
  888. .nr an-no-space-flag 1
  889. .nr an-break-flag 1
  890. .br
  891. Download a file
  892. .RS
  893. .sp
  894. .RS 4
  895. .nf
  896. aria2c http://host/file\&.zip
  897. .fi
  898. .RE
  899. .sp
  900. .it 1 an-trap
  901. .nr an-no-space-flag 1
  902. .nr an-break-flag 1
  903. .br
  904. Note
  905. aria2 uses 5 connections to download 1 file by default\&.
  906. .sp
  907. .RE
  908. .sp
  909. .it 1 an-trap
  910. .nr an-no-space-flag 1
  911. .nr an-break-flag 1
  912. .br
  913. Download a file using 1 connection
  914. .RS
  915. .sp
  916. .RS 4
  917. .nf
  918. aria2c \-s1 http://host/file\&.zip
  919. .fi
  920. .RE
  921. .sp
  922. .it 1 an-trap
  923. .nr an-no-space-flag 1
  924. .nr an-break-flag 1
  925. .br
  926. Note
  927. aria2 uses 5 connections to download 1 file by default\&. \-s1 limits the number of connections to just 1\&.
  928. .sp
  929. .sp
  930. .it 1 an-trap
  931. .nr an-no-space-flag 1
  932. .nr an-break-flag 1
  933. .br
  934. Note
  935. 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\&.
  936. .sp
  937. .RE
  938. .sp
  939. .it 1 an-trap
  940. .nr an-no-space-flag 1
  941. .nr an-break-flag 1
  942. .br
  943. Download a file from 2 different HTTP servers
  944. .RS
  945. .sp
  946. .RS 4
  947. .nf
  948. aria2c http://host/file\&.zip http://mirror/file\&.zip
  949. .fi
  950. .RE
  951. .RE
  952. .sp
  953. .it 1 an-trap
  954. .nr an-no-space-flag 1
  955. .nr an-break-flag 1
  956. .br
  957. Download a file from HTTP and FTP servers
  958. .RS
  959. .sp
  960. .RS 4
  961. .nf
  962. aria2c http://host1/file\&.zip ftp://host2/file\&.zip
  963. .fi
  964. .RE
  965. .RE
  966. .sp
  967. .it 1 an-trap
  968. .nr an-no-space-flag 1
  969. .nr an-break-flag 1
  970. .br
  971. Download files listed in a text file concurrently
  972. .RS
  973. .sp
  974. .RS 4
  975. .nf
  976. aria2c \-ifiles\&.txt \-j2
  977. .fi
  978. .RE
  979. .sp
  980. .it 1 an-trap
  981. .nr an-no-space-flag 1
  982. .nr an-break-flag 1
  983. .br
  984. Note
  985. \-j option specifies the number of parallel downloads\&.
  986. .sp
  987. .RE
  988. .sp
  989. .it 1 an-trap
  990. .nr an-no-space-flag 1
  991. .nr an-break-flag 1
  992. .br
  993. Using proxy
  994. .RS
  995. For HTTP:
  996. .sp
  997. .sp
  998. .RS 4
  999. .nf
  1000. aria2c \-\-http\-proxy=http://proxy:8080 http://host/file
  1001. .fi
  1002. .RE
  1003. For FTP:
  1004. .sp
  1005. .sp
  1006. .RS 4
  1007. .nf
  1008. aria2c \-\-ftp\-proxy=http://proxy:8080 ftp://host/file
  1009. .fi
  1010. .RE
  1011. .sp
  1012. .it 1 an-trap
  1013. .nr an-no-space-flag 1
  1014. .nr an-break-flag 1
  1015. .br
  1016. Note
  1017. See \fB\-\-http\-proxy\fR, \fB\-\-https\-proxy\fR, \fB\-\-ftp\-proxy\fR and \fB\-\-all\-proxy\fR for details\&. You can specify proxy in the environment variables\&. See ENVIRONMENT section\&.
  1018. .sp
  1019. .RE
  1020. .sp
  1021. .it 1 an-trap
  1022. .nr an-no-space-flag 1
  1023. .nr an-break-flag 1
  1024. .br
  1025. Proxy with authorization
  1026. .RS
  1027. .sp
  1028. .RS 4
  1029. .nf
  1030. aria2c \-\-http\-proxy=http://username:password@proxy:8080 http://host/file
  1031. .fi
  1032. .RE
  1033. .RE
  1034. .SS "Metalink Download"
  1035. .sp
  1036. .it 1 an-trap
  1037. .nr an-no-space-flag 1
  1038. .nr an-break-flag 1
  1039. .br
  1040. Download files with remote Metalink
  1041. .RS
  1042. .sp
  1043. .RS 4
  1044. .nf
  1045. aria2c \-\-follow\-metalink=mem http://host/file\&.metalink
  1046. .fi
  1047. .RE
  1048. .RE
  1049. .sp
  1050. .it 1 an-trap
  1051. .nr an-no-space-flag 1
  1052. .nr an-break-flag 1
  1053. .br
  1054. Download using a local metalink file
  1055. .RS
  1056. .sp
  1057. .RS 4
  1058. .nf
  1059. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  1060. .fi
  1061. .RE
  1062. .sp
  1063. .it 1 an-trap
  1064. .nr an-no-space-flag 1
  1065. .nr an-break-flag 1
  1066. .br
  1067. Note
  1068. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  1069. .sp
  1070. .RE
  1071. .sp
  1072. .it 1 an-trap
  1073. .nr an-no-space-flag 1
  1074. .nr an-break-flag 1
  1075. .br
  1076. Download several local metalink files
  1077. .RS
  1078. .sp
  1079. .RS 4
  1080. .nf
  1081. aria2c \-j2 file1\&.metalink file2\&.metalink
  1082. .fi
  1083. .RE
  1084. .RE
  1085. .sp
  1086. .it 1 an-trap
  1087. .nr an-no-space-flag 1
  1088. .nr an-break-flag 1
  1089. .br
  1090. Download only selected files using index
  1091. .RS
  1092. .sp
  1093. .RS 4
  1094. .nf
  1095. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  1096. .fi
  1097. .RE
  1098. .sp
  1099. .it 1 an-trap
  1100. .nr an-no-space-flag 1
  1101. .nr an-break-flag 1
  1102. .br
  1103. Note
  1104. The index is printed to the console using \-S option\&.
  1105. .sp
  1106. .RE
  1107. .sp
  1108. .it 1 an-trap
  1109. .nr an-no-space-flag 1
  1110. .nr an-break-flag 1
  1111. .br
  1112. Download a file using a local .metalink file with user preference
  1113. .RS
  1114. .sp
  1115. .RS 4
  1116. .nf
  1117. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  1118. .fi
  1119. .RE
  1120. .RE
  1121. .SS "BitTorrent Download"
  1122. .sp
  1123. .it 1 an-trap
  1124. .nr an-no-space-flag 1
  1125. .nr an-break-flag 1
  1126. .br
  1127. Download files from remote BitTorrent file
  1128. .RS
  1129. .sp
  1130. .RS 4
  1131. .nf
  1132. aria2c \-\-follow\-torrent=mem http://host/file\&.torrent
  1133. .fi
  1134. .RE
  1135. .RE
  1136. .sp
  1137. .it 1 an-trap
  1138. .nr an-no-space-flag 1
  1139. .nr an-break-flag 1
  1140. .br
  1141. Download using a local torrent file
  1142. .RS
  1143. .sp
  1144. .RS 4
  1145. .nf
  1146. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  1147. .fi
  1148. .RE
  1149. .sp
  1150. .it 1 an-trap
  1151. .nr an-no-space-flag 1
  1152. .nr an-break-flag 1
  1153. .br
  1154. Note
  1155. \-\-max\-upload\-limit specifies the max of upload rate\&.
  1156. .sp
  1157. .sp
  1158. .it 1 an-trap
  1159. .nr an-no-space-flag 1
  1160. .nr an-break-flag 1
  1161. .br
  1162. Note
  1163. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument in the same directory\&.
  1164. .sp
  1165. .RE
  1166. .sp
  1167. .it 1 an-trap
  1168. .nr an-no-space-flag 1
  1169. .nr an-break-flag 1
  1170. .br
  1171. Download 2 torrents
  1172. .RS
  1173. .sp
  1174. .RS 4
  1175. .nf
  1176. aria2c \-j2 file1\&.torrent file2\&.torrent
  1177. .fi
  1178. .RE
  1179. .RE
  1180. .sp
  1181. .it 1 an-trap
  1182. .nr an-no-space-flag 1
  1183. .nr an-break-flag 1
  1184. .br
  1185. Download a file using torrent and HTTP/FTP server
  1186. .RS
  1187. .sp
  1188. .RS 4
  1189. .nf
  1190. aria2c \-Ttest\&.torrent http://host1/file ftp://host2/file
  1191. .fi
  1192. .RE
  1193. .sp
  1194. .it 1 an-trap
  1195. .nr an-no-space-flag 1
  1196. .nr an-break-flag 1
  1197. .br
  1198. Note
  1199. Downloading multi file torrent with HTTP/FTP is not supported\&.
  1200. .sp
  1201. .RE
  1202. .sp
  1203. .it 1 an-trap
  1204. .nr an-no-space-flag 1
  1205. .nr an-break-flag 1
  1206. .br
  1207. Download only selected files using index(usually called "selectable download")
  1208. .RS
  1209. .sp
  1210. .RS 4
  1211. .nf
  1212. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1213. .fi
  1214. .RE
  1215. .sp
  1216. .it 1 an-trap
  1217. .nr an-no-space-flag 1
  1218. .nr an-break-flag 1
  1219. .br
  1220. Note
  1221. The index is printed to the console using \-S option\&.
  1222. .sp
  1223. .RE
  1224. .sp
  1225. .it 1 an-trap
  1226. .nr an-no-space-flag 1
  1227. .nr an-break-flag 1
  1228. .br
  1229. Change the listening port for incoming peer
  1230. .RS
  1231. .sp
  1232. .RS 4
  1233. .nf
  1234. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1235. .fi
  1236. .RE
  1237. .sp
  1238. .it 1 an-trap
  1239. .nr an-no-space-flag 1
  1240. .nr an-break-flag 1
  1241. .br
  1242. Note
  1243. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1244. .sp
  1245. .RE
  1246. .sp
  1247. .it 1 an-trap
  1248. .nr an-no-space-flag 1
  1249. .nr an-break-flag 1
  1250. .br
  1251. Specify the condition to stop program after torrent download finished
  1252. .RS
  1253. .sp
  1254. .RS 4
  1255. .nf
  1256. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1257. .fi
  1258. .RE
  1259. .sp
  1260. .it 1 an-trap
  1261. .nr an-no-space-flag 1
  1262. .nr an-break-flag 1
  1263. .br
  1264. Note
  1265. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1266. .sp
  1267. .RE
  1268. .sp
  1269. .it 1 an-trap
  1270. .nr an-no-space-flag 1
  1271. .nr an-break-flag 1
  1272. .br
  1273. Throttle upload speed
  1274. .RS
  1275. .sp
  1276. .RS 4
  1277. .nf
  1278. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1279. .fi
  1280. .RE
  1281. .RE
  1282. .sp
  1283. .it 1 an-trap
  1284. .nr an-no-space-flag 1
  1285. .nr an-break-flag 1
  1286. .br
  1287. Enable DHT
  1288. .RS
  1289. .sp
  1290. .RS 4
  1291. .nf
  1292. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1293. .fi
  1294. .RE
  1295. .sp
  1296. .it 1 an-trap
  1297. .nr an-no-space-flag 1
  1298. .nr an-break-flag 1
  1299. .br
  1300. Note
  1301. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1302. .sp
  1303. .RE
  1304. .SS "More advanced HTTP features"
  1305. .sp
  1306. .it 1 an-trap
  1307. .nr an-no-space-flag 1
  1308. .nr an-break-flag 1
  1309. .br
  1310. Load cookies
  1311. .RS
  1312. .sp
  1313. .RS 4
  1314. .nf
  1315. aria2c \-\-load\-cookies=cookies\&.txt http://host/file\&.zip
  1316. .fi
  1317. .RE
  1318. .sp
  1319. .it 1 an-trap
  1320. .nr an-no-space-flag 1
  1321. .nr an-break-flag 1
  1322. .br
  1323. Note
  1324. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1325. .sp
  1326. .RE
  1327. .sp
  1328. .it 1 an-trap
  1329. .nr an-no-space-flag 1
  1330. .nr an-break-flag 1
  1331. .br
  1332. Resume download started by web browsers or another programs
  1333. .RS
  1334. .sp
  1335. .RS 4
  1336. .nf
  1337. aria2c \-c \-s2 http://host/partiallydownloadedfile\&.zip
  1338. .fi
  1339. .RE
  1340. .RE
  1341. .sp
  1342. .it 1 an-trap
  1343. .nr an-no-space-flag 1
  1344. .nr an-break-flag 1
  1345. .br
  1346. Client certificate authorization for SSL/TLS
  1347. .RS
  1348. .sp
  1349. .RS 4
  1350. .nf
  1351. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  1352. .fi
  1353. .RE
  1354. .sp
  1355. .it 1 an-trap
  1356. .nr an-no-space-flag 1
  1357. .nr an-break-flag 1
  1358. .br
  1359. Note
  1360. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  1361. .sp
  1362. .RE
  1363. .sp
  1364. .it 1 an-trap
  1365. .nr an-no-space-flag 1
  1366. .nr an-break-flag 1
  1367. .br
  1368. Verify peer in SSL/TLS using given CA certificates
  1369. .RS
  1370. .sp
  1371. .RS 4
  1372. .nf
  1373. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  1374. .fi
  1375. .RE
  1376. .RE
  1377. .SS "And more advanced features"
  1378. .sp
  1379. .it 1 an-trap
  1380. .nr an-no-space-flag 1
  1381. .nr an-break-flag 1
  1382. .br
  1383. Throttle download speed
  1384. .RS
  1385. .sp
  1386. .RS 4
  1387. .nf
  1388. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1389. .fi
  1390. .RE
  1391. .RE
  1392. .sp
  1393. .it 1 an-trap
  1394. .nr an-no-space-flag 1
  1395. .nr an-break-flag 1
  1396. .br
  1397. Repair a damaged download using -V option
  1398. .RS
  1399. .sp
  1400. .RS 4
  1401. .nf
  1402. aria2c \-V file\&.metalink
  1403. .fi
  1404. .RE
  1405. .sp
  1406. .it 1 an-trap
  1407. .nr an-no-space-flag 1
  1408. .nr an-break-flag 1
  1409. .br
  1410. Note
  1411. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1412. .sp
  1413. .RE
  1414. .sp
  1415. .it 1 an-trap
  1416. .nr an-no-space-flag 1
  1417. .nr an-break-flag 1
  1418. .br
  1419. Drop connection if download speed is lower than specified value
  1420. .RS
  1421. .sp
  1422. .RS 4
  1423. .nf
  1424. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1425. .fi
  1426. .RE
  1427. .RE
  1428. .sp
  1429. .it 1 an-trap
  1430. .nr an-no-space-flag 1
  1431. .nr an-break-flag 1
  1432. .br
  1433. Parameterized URI support
  1434. .RS
  1435. You can specify set of parts:
  1436. .sp
  1437. .sp
  1438. .RS 4
  1439. .nf
  1440. aria2c \-P http://{host1,host2,host3}/file\&.iso
  1441. .fi
  1442. .RE
  1443. You can specify numeric sequence:
  1444. .sp
  1445. .sp
  1446. .RS 4
  1447. .nf
  1448. aria2c \-Z \-P http://host/image[000\-100]\&.png
  1449. .fi
  1450. .RE
  1451. .sp
  1452. .it 1 an-trap
  1453. .nr an-no-space-flag 1
  1454. .nr an-break-flag 1
  1455. .br
  1456. Note
  1457. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1458. .sp
  1459. You can specify step counter:
  1460. .sp
  1461. .sp
  1462. .RS 4
  1463. .nf
  1464. aria2c \-Z \-P http://host/image[A\-Z:2]\&.png
  1465. .fi
  1466. .RE
  1467. .RE
  1468. .sp
  1469. .it 1 an-trap
  1470. .nr an-no-space-flag 1
  1471. .nr an-break-flag 1
  1472. .br
  1473. Parallel downloads of arbitrary number of URL,metalink,torrent
  1474. .RS
  1475. .sp
  1476. .RS 4
  1477. .nf
  1478. aria2c \-j3 \-Z http://host/file1 file2\&.torrent file3\&.metalink
  1479. .fi
  1480. .RE
  1481. .RE
  1482. .sp
  1483. .it 1 an-trap
  1484. .nr an-no-space-flag 1
  1485. .nr an-break-flag 1
  1486. .br
  1487. BitTorrent Encryption
  1488. .RS
  1489. Encrypt whole payload using ARC4:
  1490. .sp
  1491. .sp
  1492. .RS 4
  1493. .nf
  1494. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1495. .fi
  1496. .RE
  1497. .RE
  1498. .SH "RESUME DOWNLOAD"
  1499. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  1500. .sp
  1501. If the previous transfer is made by a browser or wget like sequential download manager, then use \-c option to continue the transfer(aria2c \-c URL)\&.
  1502. .sp
  1503. .SH "CONTROL FILE"
  1504. aria2 uses a control file to track the progress of a download\&. A control file is placed in the same directory as the downloading file and its filename is the filename of downloading file with "\&.aria2" appended\&. For example, if you are downloading file\&.zip, then the control file should be file\&.zip\&.aria2\&. (There is a exception for this naming convention\&. If you are downloading a multi torrent, its control file is the "top directory" name of the torrent with "\&.aria2" appended\&. The "top directory" name is a value of "name" key in "info" directory in a torrent file\&.)
  1505. .sp
  1506. Usually a control file is deleted once download completed\&. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn\'t support resume), a control file is not created\&.
  1507. .sp
  1508. Normally if you lose a control file, you cannot resume download\&. But if you have a torrent or metalink with chunk checksums for the file, you can resume the download without a control file by giving \-V option to aria2c in command\-line\&.
  1509. .sp
  1510. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  1511. You can seed downloaded file using \-V option\&.
  1512. .sp
  1513. .sp
  1514. .RS 4
  1515. .nf
  1516. aria2c \-V file\&.torrent
  1517. .fi
  1518. .RE
  1519. .SH "INPUT FILE"
  1520. The input file can contain a list of URIs for aria2 to download\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&.
  1521. .sp
  1522. Each line is treated as if it is provided in command\-line argument\&. Therefore they are affected by \fB\-Z\fR and \fB\-P\fR options\&. The additional \fBout\fR and \fBdir\fR options can be specified after each line of URIs\&. This optional line must start with white space(s)\&.
  1523. .sp
  1524. For example, the content of uri\&.txt is
  1525. .sp
  1526. .sp
  1527. .RS 4
  1528. .nf
  1529. http://server/file\&.iso http://mirror/file\&.iso
  1530. dir=/iso_images
  1531. out=file\&.img
  1532. http://foo/bar
  1533. .fi
  1534. .RE
  1535. If aria2 is executed with \fB\-i\fR uri\&.txt \fB\-d\fR /tmp options, then \fIfile\&.iso\fR is saved as \fI/iso_images/file\&.img\fR and it is downloaded from http://server/file\&.iso and http://mirror/file\&.iso\&. The file \fIbar\fR is downloaded from http://foo/bar and saved as \fI/tmp/bar\fR\&.
  1536. .sp
  1537. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  1538. .sp
  1539. .SH "SERVER PERFORMANCE PROFILE"
  1540. This section describes the format of server performance profile\&. The file is plain text and each line has several NAME=VALUE pair, delimited by comma\&. Currently following NAMEs are recognized:
  1541. .PP
  1542. host
  1543. .RS 4
  1544. Hostname of the server\&. Required\&.
  1545. .RE
  1546. .PP
  1547. protocol
  1548. .RS 4
  1549. Protocol for this profile, such as ftp, http\&. Required\&.
  1550. .RE
  1551. .PP
  1552. dl_speed
  1553. .RS 4
  1554. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1555. .RE
  1556. .PP
  1557. last_updated
  1558. .RS 4
  1559. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1560. .RE
  1561. .PP
  1562. status
  1563. .RS 4
  1564. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1565. .RE
  1566. Those fields must exist in one line\&. The order of the fields is not significant\&. You can put pairs other than the above; they are simply ignored\&.
  1567. .sp
  1568. An example follows:
  1569. .sp
  1570. .sp
  1571. .RS 4
  1572. .nf
  1573. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1574. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1575. .fi
  1576. .RE
  1577. .SH "FILES"
  1578. .SS "aria2\&.conf"
  1579. User configuration file\&. It must be placed under $HOME/\&.aria2 and must be named aria2\&.conf\&. In each line, there is 1 parameter whose syntax is name=value pair, where name is the long command\-line option name without \fI\-\-\fR prefix\&. The lines beginning \fI#\fR are treated as comments\&.
  1580. .sp
  1581. .sp
  1582. .RS 4
  1583. .nf
  1584. # sample configuration file for aria2c
  1585. listen\-port=60000
  1586. dht\-listen\-port=60000
  1587. seed\-ratio=1\&.0
  1588. max\-upload\-limit=50K
  1589. ftp\-pasv=true
  1590. .fi
  1591. .RE
  1592. .SS "dht\&.dat"
  1593. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1594. .sp
  1595. .SH "ENVIRONMENT"
  1596. aria2 recognizes the following environment variables\&.
  1597. .PP
  1598. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1599. .RS 4
  1600. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  1601. \fB\-\-http\-proxy\fR
  1602. overrides this value\&.
  1603. .RE
  1604. .PP
  1605. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1606. .RS 4
  1607. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  1608. \fB\-\-https\-proxy\fR
  1609. overrides this value\&.
  1610. .RE
  1611. .PP
  1612. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1613. .RS 4
  1614. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  1615. \fB\-\-ftp\-proxy\fR
  1616. overrides this value\&.
  1617. .RE
  1618. .PP
  1619. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1620. .RS 4
  1621. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  1622. \fB\-\-all\-proxy\fR
  1623. overrides this value\&.
  1624. .RE
  1625. .PP
  1626. no_proxy [DOMAIN,\&...]
  1627. .RS 4
  1628. Specify comma\-separated hostname or domains to which proxy should not be used\&. Overrides no\-proxy value in configuration file\&. The command\-line option
  1629. \fB\-\-no\-proxy\fR
  1630. overrides this value\&.
  1631. .RE
  1632. .SH "EXIT CODES"
  1633. Because aria2 can handle multiple downloads at once, it encounters lots of errors in a session\&. aria2 returns the following exit codes based on the last error encountered\&.
  1634. .PP
  1635. 0
  1636. .RS 4
  1637. If all downloads are successful\&.
  1638. .RE
  1639. .PP
  1640. 1
  1641. .RS 4
  1642. If an unknown error occurs\&.
  1643. .RE
  1644. .PP
  1645. 2
  1646. .RS 4
  1647. If time out occurs\&.
  1648. .RE
  1649. .PP
  1650. 3
  1651. .RS 4
  1652. If a resource is not found\&.
  1653. .RE
  1654. .PP
  1655. 4
  1656. .RS 4
  1657. If aria2 sees the specfied number of "resource not found" error\&. See
  1658. \fB\-\-max\-file\-not\-found\fR
  1659. option)\&.
  1660. .RE
  1661. .PP
  1662. 5
  1663. .RS 4
  1664. If a download aborts because download speed is too slow\&. See
  1665. \fB\-\-lowest\-speed\-limit\fR
  1666. option)
  1667. .RE
  1668. .PP
  1669. 6
  1670. .RS 4
  1671. If network problem occurs\&.
  1672. .RE
  1673. .PP
  1674. 7
  1675. .RS 4
  1676. If there are unfinished downloads\&. This error is only reported if all finished downloads are successful and there are unfinished downloads in a queue when aria2 exits by pressing Ctrl\-C by an user or sending TERM or INT signal\&.
  1677. .RE
  1678. .sp
  1679. .it 1 an-trap
  1680. .nr an-no-space-flag 1
  1681. .nr an-break-flag 1
  1682. .br
  1683. Note
  1684. An error occurred in a finished download will not be reported as exit status\&.
  1685. .sp
  1686. .SH "RESOURCES"
  1687. Project web site: http://aria2\&.sourceforge\&.net/
  1688. .sp
  1689. metalink: http://www\&.metalinker\&.org/
  1690. .sp
  1691. .SH "REPORTING BUGS"
  1692. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa at users\&.sourceforge\&.net>
  1693. .sp
  1694. .SH "AUTHOR"
  1695. Tatsuhiro Tsujikawa <t\-tujikawa at users\&.sourceforge\&.net>
  1696. .sp
  1697. .SH "COPYRIGHT"
  1698. Copyright \(co 2006, 2008 Tatsuhiro Tsujikawa
  1699. .sp
  1700. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
  1701. .sp
  1702. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
  1703. .sp
  1704. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc\&., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA
  1705. .sp
  1706. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two\&. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL\&. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so\&. If you do not wish to do so, delete this exception statement from your version\&. If you delete this exception statement from all source files in the program, then also delete it here\&.
  1707. .sp