aria2c.1.html 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="generator" content="AsciiDoc 8.5.1" />
  7. <title>ARIA2C(1)</title>
  8. <style type="text/css">
  9. /* Debug borders */
  10. p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
  11. /*
  12. border: 1px solid red;
  13. */
  14. }
  15. body {
  16. margin: 1em 5% 1em 5%;
  17. }
  18. a {
  19. color: blue;
  20. text-decoration: underline;
  21. }
  22. a:visited {
  23. color: fuchsia;
  24. }
  25. em {
  26. font-style: italic;
  27. color: navy;
  28. }
  29. strong {
  30. font-weight: bold;
  31. color: #083194;
  32. }
  33. tt {
  34. color: navy;
  35. }
  36. h1, h2, h3, h4, h5, h6 {
  37. color: #527bbd;
  38. font-family: sans-serif;
  39. margin-top: 1.2em;
  40. margin-bottom: 0.5em;
  41. line-height: 1.3;
  42. }
  43. h1, h2, h3 {
  44. border-bottom: 2px solid silver;
  45. }
  46. h2 {
  47. padding-top: 0.5em;
  48. }
  49. h3 {
  50. float: left;
  51. }
  52. h3 + * {
  53. clear: left;
  54. }
  55. div.sectionbody {
  56. font-family: serif;
  57. margin-left: 0;
  58. }
  59. hr {
  60. border: 1px solid silver;
  61. }
  62. p {
  63. margin-top: 0.5em;
  64. margin-bottom: 0.5em;
  65. }
  66. ul, ol, li > p {
  67. margin-top: 0;
  68. }
  69. pre {
  70. padding: 0;
  71. margin: 0;
  72. }
  73. span#author {
  74. color: #527bbd;
  75. font-family: sans-serif;
  76. font-weight: bold;
  77. font-size: 1.1em;
  78. }
  79. span#email {
  80. }
  81. span#revnumber, span#revdate, span#revremark {
  82. font-family: sans-serif;
  83. }
  84. div#footer {
  85. font-family: sans-serif;
  86. font-size: small;
  87. border-top: 2px solid silver;
  88. padding-top: 0.5em;
  89. margin-top: 4.0em;
  90. }
  91. div#footer-text {
  92. float: left;
  93. padding-bottom: 0.5em;
  94. }
  95. div#footer-badges {
  96. float: right;
  97. padding-bottom: 0.5em;
  98. }
  99. div#preamble {
  100. margin-top: 1.5em;
  101. margin-bottom: 1.5em;
  102. }
  103. div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
  104. div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
  105. div.admonitionblock {
  106. margin-top: 0.25em;
  107. margin-bottom: 1.5em;
  108. }
  109. div.admonitionblock {
  110. margin-top: 2.5em;
  111. margin-bottom: 2.5em;
  112. }
  113. div.content { /* Block element content. */
  114. padding: 0;
  115. }
  116. /* Block element titles. */
  117. div.title, caption.title {
  118. color: #527bbd;
  119. font-family: sans-serif;
  120. font-weight: bold;
  121. text-align: left;
  122. margin-top: 1.0em;
  123. margin-bottom: 0.5em;
  124. }
  125. div.title + * {
  126. margin-top: 0;
  127. }
  128. td div.title:first-child {
  129. margin-top: 0.0em;
  130. }
  131. div.content div.title:first-child {
  132. margin-top: 0.0em;
  133. }
  134. div.content + div.title {
  135. margin-top: 0.0em;
  136. }
  137. div.sidebarblock > div.content {
  138. background: #ffffee;
  139. border: 1px solid silver;
  140. padding: 0.5em;
  141. }
  142. div.listingblock > div.content {
  143. border: 1px solid silver;
  144. background: #f4f4f4;
  145. padding: 0.5em;
  146. }
  147. div.quoteblock {
  148. padding-left: 2.0em;
  149. margin-right: 10%;
  150. }
  151. div.quoteblock > div.attribution {
  152. padding-top: 0.5em;
  153. text-align: right;
  154. }
  155. div.verseblock {
  156. padding-left: 2.0em;
  157. margin-right: 10%;
  158. }
  159. div.verseblock > div.content {
  160. white-space: pre;
  161. }
  162. div.verseblock > div.attribution {
  163. padding-top: 0.75em;
  164. text-align: left;
  165. }
  166. /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
  167. div.verseblock + div.attribution {
  168. text-align: left;
  169. }
  170. div.admonitionblock .icon {
  171. vertical-align: top;
  172. font-size: 1.1em;
  173. font-weight: bold;
  174. text-decoration: underline;
  175. color: #527bbd;
  176. padding-right: 0.5em;
  177. }
  178. div.admonitionblock td.content {
  179. padding-left: 0.5em;
  180. border-left: 2px solid silver;
  181. }
  182. div.exampleblock > div.content {
  183. border-left: 2px solid silver;
  184. padding: 0.5em;
  185. }
  186. div.imageblock div.content { padding-left: 0; }
  187. span.image img { border-style: none; }
  188. a.image:visited { color: white; }
  189. dl {
  190. margin-top: 0.8em;
  191. margin-bottom: 0.8em;
  192. }
  193. dt {
  194. margin-top: 0.5em;
  195. margin-bottom: 0;
  196. font-style: normal;
  197. color: navy;
  198. }
  199. dd > *:first-child {
  200. margin-top: 0.1em;
  201. }
  202. ul, ol {
  203. list-style-position: outside;
  204. }
  205. ol.arabic {
  206. list-style-type: decimal;
  207. }
  208. ol.loweralpha {
  209. list-style-type: lower-alpha;
  210. }
  211. ol.upperalpha {
  212. list-style-type: upper-alpha;
  213. }
  214. ol.lowerroman {
  215. list-style-type: lower-roman;
  216. }
  217. ol.upperroman {
  218. list-style-type: upper-roman;
  219. }
  220. div.compact ul, div.compact ol,
  221. div.compact p, div.compact p,
  222. div.compact div, div.compact div {
  223. margin-top: 0.1em;
  224. margin-bottom: 0.1em;
  225. }
  226. div.tableblock > table {
  227. border: 3px solid #527bbd;
  228. }
  229. thead {
  230. font-family: sans-serif;
  231. font-weight: bold;
  232. }
  233. tfoot {
  234. font-weight: bold;
  235. }
  236. td > div.verse {
  237. white-space: pre;
  238. }
  239. p.table {
  240. margin-top: 0;
  241. }
  242. /* Because the table frame attribute is overriden by CSS in most browsers. */
  243. div.tableblock > table[frame="void"] {
  244. border-style: none;
  245. }
  246. div.tableblock > table[frame="hsides"] {
  247. border-left-style: none;
  248. border-right-style: none;
  249. }
  250. div.tableblock > table[frame="vsides"] {
  251. border-top-style: none;
  252. border-bottom-style: none;
  253. }
  254. div.hdlist {
  255. margin-top: 0.8em;
  256. margin-bottom: 0.8em;
  257. }
  258. div.hdlist tr {
  259. padding-bottom: 15px;
  260. }
  261. dt.hdlist1.strong, td.hdlist1.strong {
  262. font-weight: bold;
  263. }
  264. td.hdlist1 {
  265. vertical-align: top;
  266. font-style: normal;
  267. padding-right: 0.8em;
  268. color: navy;
  269. }
  270. td.hdlist2 {
  271. vertical-align: top;
  272. }
  273. div.hdlist.compact tr {
  274. margin: 0;
  275. padding-bottom: 0;
  276. }
  277. .comment {
  278. background: yellow;
  279. }
  280. .footnote, .footnoteref {
  281. font-size: 0.8em;
  282. }
  283. span.footnote, span.footnoteref {
  284. vertical-align: super;
  285. }
  286. #footnotes {
  287. margin: 20px 0 20px 0;
  288. padding: 7px 0 0 0;
  289. }
  290. #footnotes div.footnote {
  291. margin: 0 0 5px 0;
  292. }
  293. #footnotes hr {
  294. border: none;
  295. border-top: 1px solid silver;
  296. height: 1px;
  297. text-align: left;
  298. margin-left: 0;
  299. width: 20%;
  300. min-width: 100px;
  301. }
  302. @media print {
  303. div#footer-badges { display: none; }
  304. }
  305. div#toctitle {
  306. color: #527bbd;
  307. font-family: sans-serif;
  308. font-size: 1.1em;
  309. font-weight: bold;
  310. margin-top: 1.0em;
  311. margin-bottom: 0.1em;
  312. }
  313. div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  314. margin-top: 0;
  315. margin-bottom: 0;
  316. }
  317. div.toclevel2 {
  318. margin-left: 2em;
  319. font-size: 0.9em;
  320. }
  321. div.toclevel3 {
  322. margin-left: 4em;
  323. font-size: 0.9em;
  324. }
  325. div.toclevel4 {
  326. margin-left: 6em;
  327. font-size: 0.9em;
  328. }
  329. /* Overrides for manpage documents */
  330. h1 {
  331. padding-top: 0.5em;
  332. padding-bottom: 0.5em;
  333. border-top: 2px solid silver;
  334. border-bottom: 2px solid silver;
  335. }
  336. h2 {
  337. border-style: none;
  338. }
  339. div.sectionbody {
  340. margin-left: 5%;
  341. }
  342. @media print {
  343. div#toc { display: none; }
  344. }
  345. /* Workarounds for IE6's broken and incomplete CSS2. */
  346. div.sidebar-content {
  347. background: #ffffee;
  348. border: 1px solid silver;
  349. padding: 0.5em;
  350. }
  351. div.sidebar-title, div.image-title {
  352. color: #527bbd;
  353. font-family: sans-serif;
  354. font-weight: bold;
  355. margin-top: 0.0em;
  356. margin-bottom: 0.5em;
  357. }
  358. div.listingblock div.content {
  359. border: 1px solid silver;
  360. background: #f4f4f4;
  361. padding: 0.5em;
  362. }
  363. div.quoteblock-attribution {
  364. padding-top: 0.5em;
  365. text-align: right;
  366. }
  367. div.verseblock-content {
  368. white-space: pre;
  369. }
  370. div.verseblock-attribution {
  371. padding-top: 0.75em;
  372. text-align: left;
  373. }
  374. div.exampleblock-content {
  375. border-left: 2px solid silver;
  376. padding-left: 0.5em;
  377. }
  378. /* IE6 sets dynamically generated links as visited. */
  379. div#toc a:visited { color: blue; }
  380. </style>
  381. <script type="text/javascript">
  382. /*<![CDATA[*/
  383. window.onload = function(){asciidoc.footnotes();}
  384. var asciidoc = { // Namespace.
  385. /////////////////////////////////////////////////////////////////////
  386. // Table Of Contents generator
  387. /////////////////////////////////////////////////////////////////////
  388. /* Author: Mihai Bazon, September 2002
  389. * http://students.infoiasi.ro/~mishoo
  390. *
  391. * Table Of Content generator
  392. * Version: 0.4
  393. *
  394. * Feel free to use this script under the terms of the GNU General Public
  395. * License, as long as you do not remove or alter this notice.
  396. */
  397. /* modified by Troy D. Hanson, September 2006. License: GPL */
  398. /* modified by Stuart Rackham, 2006, 2009. License: GPL */
  399. // toclevels = 1..4.
  400. toc: function (toclevels) {
  401. function getText(el) {
  402. var text = "";
  403. for (var i = el.firstChild; i != null; i = i.nextSibling) {
  404. if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
  405. text += i.data;
  406. else if (i.firstChild != null)
  407. text += getText(i);
  408. }
  409. return text;
  410. }
  411. function TocEntry(el, text, toclevel) {
  412. this.element = el;
  413. this.text = text;
  414. this.toclevel = toclevel;
  415. }
  416. function tocEntries(el, toclevels) {
  417. var result = new Array;
  418. var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
  419. // Function that scans the DOM tree for header elements (the DOM2
  420. // nodeIterator API would be a better technique but not supported by all
  421. // browsers).
  422. var iterate = function (el) {
  423. for (var i = el.firstChild; i != null; i = i.nextSibling) {
  424. if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
  425. var mo = re.exec(i.tagName);
  426. if (mo)
  427. result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
  428. iterate(i);
  429. }
  430. }
  431. }
  432. iterate(el);
  433. return result;
  434. }
  435. var toc = document.getElementById("toc");
  436. var entries = tocEntries(document.getElementById("content"), toclevels);
  437. for (var i = 0; i < entries.length; ++i) {
  438. var entry = entries[i];
  439. if (entry.element.id == "")
  440. entry.element.id = "_toc_" + i;
  441. var a = document.createElement("a");
  442. a.href = "#" + entry.element.id;
  443. a.appendChild(document.createTextNode(entry.text));
  444. var div = document.createElement("div");
  445. div.appendChild(a);
  446. div.className = "toclevel" + entry.toclevel;
  447. toc.appendChild(div);
  448. }
  449. if (entries.length == 0)
  450. toc.parentNode.removeChild(toc);
  451. },
  452. /////////////////////////////////////////////////////////////////////
  453. // Footnotes generator
  454. /////////////////////////////////////////////////////////////////////
  455. /* Based on footnote generation code from:
  456. * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
  457. */
  458. footnotes: function () {
  459. var cont = document.getElementById("content");
  460. var noteholder = document.getElementById("footnotes");
  461. var spans = cont.getElementsByTagName("span");
  462. var refs = {};
  463. var n = 0;
  464. for (i=0; i<spans.length; i++) {
  465. if (spans[i].className == "footnote") {
  466. n++;
  467. // Use [\s\S] in place of . so multi-line matches work.
  468. // Because JavaScript has no s (dotall) regex flag.
  469. note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
  470. noteholder.innerHTML +=
  471. "<div class='footnote' id='_footnote_" + n + "'>" +
  472. "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
  473. n + "</a>. " + note + "</div>";
  474. spans[i].innerHTML =
  475. "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
  476. "' title='View footnote' class='footnote'>" + n + "</a>]";
  477. var id =spans[i].getAttribute("id");
  478. if (id != null) refs["#"+id] = n;
  479. }
  480. }
  481. if (n == 0)
  482. noteholder.parentNode.removeChild(noteholder);
  483. else {
  484. // Process footnoterefs.
  485. for (i=0; i<spans.length; i++) {
  486. if (spans[i].className == "footnoteref") {
  487. var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
  488. href = href.match(/#.*/)[0]; // Because IE return full URL.
  489. n = refs[href];
  490. spans[i].innerHTML =
  491. "[<a href='#_footnote_" + n +
  492. "' title='View footnote' class='footnote'>" + n + "</a>]";
  493. }
  494. }
  495. }
  496. }
  497. }
  498. /*]]>*/
  499. </script>
  500. </head>
  501. <body>
  502. <div id="header">
  503. <h1>
  504. ARIA2C(1) Manual Page
  505. </h1>
  506. <h2>NAME</h2>
  507. <div class="sectionbody">
  508. <p>aria2c -
  509. The ultra fast download utility
  510. </p>
  511. </div>
  512. </div>
  513. <div id="content">
  514. <h2 id="_synopsis">SYNOPSIS</h2>
  515. <div class="sectionbody">
  516. <div class="paragraph"><p>aria2c [<em>OPTIONS</em>] [<em>URI</em> | <em>MAGNET</em> | <em>TORRENT_FILE</em> | <em>METALINK_FILE</em>]&#8230;</p></div>
  517. </div>
  518. <h2 id="_description">DESCRIPTION</h2>
  519. <div class="sectionbody">
  520. <div class="paragraph"><p>aria2 is a utility for downloading files. The supported protocols are
  521. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  522. multiple sources/protocols and tries to utilize your maximum download
  523. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  524. BitTorrent at the same time, while the data downloaded from
  525. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink&#8217;s
  526. chunk checksums, aria2 automatically validates chunks of data while
  527. downloading a file like BitTorrent.</p></div>
  528. </div>
  529. <h2 id="_options">OPTIONS</h2>
  530. <div class="sectionbody">
  531. <h3 id="_basic_options">Basic Options</h3><div style="clear:left"></div>
  532. <div class="dlist"><dl>
  533. <dt class="hdlist1">
  534. <strong>-d</strong>, <strong>--dir</strong>=DIR
  535. </dt>
  536. <dd>
  537. <p>
  538. The directory to store the downloaded file.
  539. </p>
  540. </dd>
  541. <dt class="hdlist1">
  542. <strong>-i</strong>, <strong>--input-file</strong>=FILE
  543. </dt>
  544. <dd>
  545. <p>
  546. Downloads URIs found in FILE. You can specify multiple URIs for a single
  547. entity: separate URIs on a single line using the TAB character.
  548. Reads input from stdin when <em>-</em> is specified.
  549. The additional <strong>out</strong> and <strong>dir</strong> options can be specified after each line of
  550. URIs. This optional line must start with white space(s).
  551. See <strong>Input File</strong> subsection for details.
  552. </p>
  553. </dd>
  554. <dt class="hdlist1">
  555. <strong>-l</strong>, <strong>--log</strong>=LOG
  556. </dt>
  557. <dd>
  558. <p>
  559. The file name of the log file. If <em>-</em> is specified, log is written to
  560. stdout.
  561. </p>
  562. </dd>
  563. <dt class="hdlist1">
  564. <strong>-j</strong>, <strong>--max-concurrent-downloads</strong>=N
  565. </dt>
  566. <dd>
  567. <p>
  568. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  569. torrent and metalink. See also <strong>-s</strong> and <strong>-C</strong> option.
  570. Default: <em>5</em>
  571. </p>
  572. </dd>
  573. <dt class="hdlist1">
  574. <strong>-V</strong>, <strong>--check-integrity</strong>[=<em>true</em>|<em>false</em>]
  575. </dt>
  576. <dd>
  577. <p>
  578. Check file integrity by validating piece hashes.
  579. This option has effect only in BitTorrent and Metalink downloads with
  580. chunk checksums.
  581. Use this option to re-download a damaged portion of a file.
  582. Default: <em>false</em>
  583. </p>
  584. </dd>
  585. <dt class="hdlist1">
  586. <strong>-c</strong>, <strong>--continue</strong>
  587. </dt>
  588. <dd>
  589. <p>
  590. Continue downloading a partially downloaded file.
  591. Use this option to resume a download started by a web browser or another
  592. program which downloads files sequentially from the beginning.
  593. Currently this option is only applicable to HTTP(S)/FTP downloads.
  594. </p>
  595. </dd>
  596. <dt class="hdlist1">
  597. <strong>-h</strong>, <strong>--help</strong>[=TAG|KEYWORD]
  598. </dt>
  599. <dd>
  600. <p>
  601. The help messages are classified with tags. A tag starts with
  602. "#". For example, type "--help=#http" to get the usage for the
  603. options tagged with "#http". If non-tag word is given, print the
  604. usage for the options whose name includes that word.
  605. Available Values: <em>#basic</em>, <em>#advanced</em>, <em>#http</em>, <em>#https</em>, <em>#ftp</em>,
  606. <em>#metalink</em>, <em>#bittorrent</em>, <em>#cookie</em>, <em>#hook</em>, <em>#file</em>,
  607. <em>#xml-rpc</em>, <em>#experimental</em>, <em>#all</em>
  608. Default: <em>#basic</em>
  609. </p>
  610. </dd>
  611. </dl></div>
  612. <h3 id="_http_ftp_options">HTTP/FTP Options</h3><div style="clear:left"></div>
  613. <div class="dlist"><dl>
  614. <dt class="hdlist1">
  615. <strong>--all-proxy</strong>=PROXY
  616. </dt>
  617. <dd>
  618. <p>
  619. Use this proxy server for all protocols.
  620. You can override this setting and specify a proxy server for a particular
  621. protocol using <strong>--http-proxy</strong>, <strong>--https-proxy</strong> and <strong>--ftp-proxy</strong> options.
  622. This affects all URLs.
  623. The format of PROXY is [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  624. </p>
  625. </dd>
  626. <dt class="hdlist1">
  627. <strong>--connect-timeout</strong>=SEC
  628. </dt>
  629. <dd>
  630. <p>
  631. Set the connect timeout in seconds to establish connection to
  632. HTTP/FTP/proxy server. After the connection is established, this
  633. option makes no effect and <strong>--timeout</strong> option is used instead.
  634. Default: <em>60</em>
  635. </p>
  636. </dd>
  637. <dt class="hdlist1">
  638. <strong>--dry-run</strong>[=<em>true</em>|<em>false</em>]
  639. </dt>
  640. <dd>
  641. <p>
  642. If <em>true</em> is given, aria2 just checks whether the remote file is
  643. available and doesn&#8217;t download data. This option has effect on
  644. HTTP/FTP download. BitTorrent downloads are canceled if <em>true</em> is
  645. specified. Default: <em>false</em>
  646. </p>
  647. </dd>
  648. <dt class="hdlist1">
  649. <strong>--lowest-speed-limit</strong>=SPEED
  650. </dt>
  651. <dd>
  652. <p>
  653. Close connection if download speed is lower than or equal to this
  654. value(bytes per sec).
  655. <em>0</em> means aria2 does not have a lowest speed limit.
  656. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  657. This option does not affect BitTorrent downloads.
  658. Default: <em>0</em>
  659. </p>
  660. </dd>
  661. <dt class="hdlist1">
  662. <strong>--max-file-not-found</strong>=NUM
  663. </dt>
  664. <dd>
  665. <p>
  666. If aria2 receives &#8216;file not found&#8217; status from the remote HTTP/FTP
  667. servers NUM times without getting a single byte, then force the
  668. download to fail. Specify <em>0</em> to disable this option. This options is
  669. effective only when using HTTP/FTP servers.
  670. Default: <em>0</em>
  671. </p>
  672. </dd>
  673. <dt class="hdlist1">
  674. <strong>-m</strong>, <strong>--max-tries</strong>=N
  675. </dt>
  676. <dd>
  677. <p>
  678. Set number of tries. <em>0</em> means unlimited.
  679. Default: <em>5</em>
  680. </p>
  681. </dd>
  682. <dt class="hdlist1">
  683. <strong>-n</strong>, <strong>--no-netrc</strong>
  684. </dt>
  685. <dd>
  686. <p>
  687. Disables netrc support. netrc support is enabled by default.
  688. </p>
  689. </dd>
  690. <dt class="hdlist1">
  691. <strong>--no-proxy</strong>=DOMAINS
  692. </dt>
  693. <dd>
  694. <p>
  695. Specify comma separated hostnames or domains where proxy should not be
  696. used.
  697. </p>
  698. </dd>
  699. <dt class="hdlist1">
  700. <strong>-o</strong>, <strong>--out</strong>=FILE
  701. </dt>
  702. <dd>
  703. <p>
  704. The file name of the downloaded file.
  705. </p>
  706. </dd>
  707. </dl></div>
  708. <div class="admonitionblock">
  709. <table><tr>
  710. <td class="icon">
  711. <div class="title">Note</div>
  712. </td>
  713. <td class="content">In Metalink or BitTorrent download you cannot specify file name.
  714. The file name specified here is only used when the URLs fed to aria2
  715. are done by command line without <strong>-i</strong>, <strong>-Z</strong> option. For example:
  716. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"</td>
  717. </tr></table>
  718. </div>
  719. <div class="dlist"><dl>
  720. <dt class="hdlist1">
  721. <strong>--proxy-method</strong>=METHOD
  722. </dt>
  723. <dd>
  724. <p>
  725. Set the method to use in proxy request. <em>METHOD</em> is either <em>get</em> or
  726. <em>tunnel</em>. HTTPS downloads always use <em>tunnel</em> regardless of this
  727. option.
  728. Default: <em>get</em>
  729. </p>
  730. </dd>
  731. <dt class="hdlist1">
  732. <strong>-R</strong>, <strong>--remote-time</strong>[=<em>true</em>|<em>false</em>]
  733. </dt>
  734. <dd>
  735. <p>
  736. Retrieve timestamp of the remote file from the remote HTTP/FTP
  737. server and if it is available, apply it to the local file.
  738. Default: <em>false</em>
  739. </p>
  740. </dd>
  741. <dt class="hdlist1">
  742. <strong>--server-stat-of</strong>=FILE
  743. </dt>
  744. <dd>
  745. <p>
  746. Specify the filename to which performance profile of the servers is
  747. saved. You can load saved data using <strong>--server-stat-if</strong> option. See
  748. <strong>Server Performance Profile</strong> subsection below for file format.
  749. </p>
  750. </dd>
  751. <dt class="hdlist1">
  752. <strong>--server-stat-if</strong>=FILE
  753. </dt>
  754. <dd>
  755. <p>
  756. Specify the filename to load performance profile of the servers. The
  757. loaded data will be used in some URI selector such as <em>feedback</em>.
  758. See also <strong>--uri-selector</strong> option. See <strong>Server Performance Profile</strong>
  759. subsection below for file format.
  760. </p>
  761. </dd>
  762. <dt class="hdlist1">
  763. <strong>--server-stat-timeout</strong>=SEC
  764. </dt>
  765. <dd>
  766. <p>
  767. Specifies timeout in seconds to invalidate performance profile of
  768. the servers since the last contact to them.
  769. Default: <em>86400</em> (24hours)
  770. </p>
  771. </dd>
  772. <dt class="hdlist1">
  773. <strong>-s</strong>, <strong>--split</strong>=N
  774. </dt>
  775. <dd>
  776. <p>
  777. Download a file using N connections.
  778. If more than N URLs are given, first N URLs are used and remaining URLs are
  779. used for backup.
  780. If less than N URLs are given, those URLs are used more than once so that N
  781. connections total are made simultaneously.
  782. Please see <strong>-j</strong> option too.
  783. Please note that in Metalink download, this option has no effect and use
  784. <strong>-C</strong> option instead.
  785. Default: <em>5</em>
  786. </p>
  787. </dd>
  788. <dt class="hdlist1">
  789. <strong>-t</strong>, <strong>--timeout</strong>=SEC
  790. </dt>
  791. <dd>
  792. <p>
  793. Set timeout in seconds.
  794. Default: <em>60</em>
  795. </p>
  796. </dd>
  797. <dt class="hdlist1">
  798. <strong>--uri-selector</strong>=SELECTOR
  799. </dt>
  800. <dd>
  801. <p>
  802. Specify URI selection algorithm. The possible values are <em>inorder</em>,
  803. <em>feedback</em> and <em>adaptive</em>. If <em>inorder</em> is given, URI is tried in
  804. the order appeared in the URI list. If <em>feedback</em> is given, aria2
  805. uses download speed observed in the previous downloads and choose
  806. fastest server in the URI list. This also effectively skips dead
  807. mirrors. The observed download speed is a part of performance
  808. profile of servers mentioned in <strong>--server-stat-of</strong> and
  809. <strong>--server-stat-if</strong> options. If <em>adaptive</em> is given, selects one of
  810. the best mirrors for the first and reserved connections. For
  811. supplementary ones, it returns mirrors which has not been tested
  812. yet, and if each of them has already been tested, returns mirrors
  813. which has to be tested again. Otherwise, it doesn&#8217;t select anymore
  814. mirrors. Like <em>feedback</em>, it uses a performance profile of servers.
  815. Default: <em>feedback</em>
  816. </p>
  817. </dd>
  818. </dl></div>
  819. <h3 id="_http_specific_options">HTTP Specific Options</h3><div style="clear:left"></div>
  820. <div class="dlist"><dl>
  821. <dt class="hdlist1">
  822. <strong>--ca-certificate</strong>=FILE
  823. </dt>
  824. <dd>
  825. <p>
  826. Use the certificate authorities in FILE to verify the peers.
  827. The certificate file must be in PEM format and can contain multiple CA
  828. certificates.
  829. Use <strong>--check-certificate</strong> option to enable verification.
  830. </p>
  831. </dd>
  832. <dt class="hdlist1">
  833. <strong>--certificate</strong>=FILE
  834. </dt>
  835. <dd>
  836. <p>
  837. Use the client certificate in FILE.
  838. The certificate must be in PEM format.
  839. You may use <strong>--private-key</strong> option to specify the private key.
  840. </p>
  841. </dd>
  842. <dt class="hdlist1">
  843. <strong>--check-certificate</strong>[=<em>true</em>|<em>false</em>]
  844. </dt>
  845. <dd>
  846. <p>
  847. Verify the peer using certificates specified in <strong>--ca-certificate</strong> option.
  848. Default: <em>true</em>
  849. </p>
  850. </dd>
  851. <dt class="hdlist1">
  852. <strong>--http-auth-challenge</strong>[=<em>true</em>|<em>false</em>]
  853. </dt>
  854. <dd>
  855. <p>
  856. Send HTTP authorization header only when it is requested by the
  857. server. If <em>false</em> is set, then authorization header is always sent
  858. to the server. There is an exception: if username and password are
  859. embedded in URI, authorization header is always sent to the server
  860. regardless of this option. Default: <em>false</em>
  861. </p>
  862. </dd>
  863. <dt class="hdlist1">
  864. <strong>--http-user</strong>=USER
  865. </dt>
  866. <dd>
  867. <p>
  868. Set HTTP user. This affects all URLs.
  869. </p>
  870. </dd>
  871. <dt class="hdlist1">
  872. <strong>--http-passwd</strong>=PASSWD
  873. </dt>
  874. <dd>
  875. <p>
  876. Set HTTP password. This affects all URLs.
  877. </p>
  878. </dd>
  879. <dt class="hdlist1">
  880. <strong>--http-proxy</strong>=PROXY
  881. </dt>
  882. <dd>
  883. <p>
  884. Use this proxy server for HTTP. See also <strong>--all-proxy</strong> option.
  885. This affects all URLs.
  886. The format of PROXY is [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  887. </p>
  888. </dd>
  889. <dt class="hdlist1">
  890. <strong>--https-proxy</strong>=PROXY
  891. </dt>
  892. <dd>
  893. <p>
  894. Use this proxy server for HTTPS. See also <strong>--all-proxy</strong> option.
  895. This affects all URLs.
  896. The format of PROXY is [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  897. </p>
  898. </dd>
  899. <dt class="hdlist1">
  900. <strong>--private-key</strong>=FILE
  901. </dt>
  902. <dd>
  903. <p>
  904. Use the private key in FILE.
  905. The private key must be decrypted and in PEM format.
  906. The behavior when encrypted one is given is undefined.
  907. See also <strong>--certificate</strong> option.
  908. </p>
  909. </dd>
  910. <dt class="hdlist1">
  911. <strong>--referer</strong>=REFERER
  912. </dt>
  913. <dd>
  914. <p>
  915. Set Referer. This affects all URLs.
  916. </p>
  917. </dd>
  918. <dt class="hdlist1">
  919. <strong>--enable-http-keep-alive</strong>[=<em>true</em>|<em>false</em>]
  920. </dt>
  921. <dd>
  922. <p>
  923. Enable HTTP/1.1 persistent connection.
  924. Default: <em>true</em>
  925. </p>
  926. </dd>
  927. <dt class="hdlist1">
  928. <strong>--enable-http-pipelining</strong>[=<em>true</em>|<em>false</em>]
  929. </dt>
  930. <dd>
  931. <p>
  932. Enable HTTP/1.1 pipelining.
  933. Default: <em>false</em>
  934. </p>
  935. </dd>
  936. <dt class="hdlist1">
  937. <strong>--header</strong>=HEADER
  938. </dt>
  939. <dd>
  940. <p>
  941. Append HEADER to HTTP request header.
  942. You can use this option repeatedly to specify more than one header:
  943. aria2c <strong>--header</strong>="X-A: b78" <strong>--header</strong>="X-B: 9J1" "http://host/file"
  944. </p>
  945. </dd>
  946. <dt class="hdlist1">
  947. <strong>--load-cookies</strong>=FILE
  948. </dt>
  949. <dd>
  950. <p>
  951. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  952. Mozilla/Firefox(1.x/2.x)/Netscape format.
  953. </p>
  954. </dd>
  955. </dl></div>
  956. <div class="admonitionblock">
  957. <table><tr>
  958. <td class="icon">
  959. <div class="title">Note</div>
  960. </td>
  961. <td class="content">If aria2 is built without libsqlite3, then it doesn&#8217;t support Firefox3 cookie format.</td>
  962. </tr></table>
  963. </div>
  964. <div class="dlist"><dl>
  965. <dt class="hdlist1">
  966. <strong>--save-cookies</strong>=FILE
  967. </dt>
  968. <dd>
  969. <p>
  970. Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/ Netscape
  971. format. If FILE already exists, it is overwritten. Session Cookies
  972. are also saved and their expiry values are treated as 0. Possible
  973. Values: <em>/path/to/file</em>
  974. </p>
  975. </dd>
  976. <dt class="hdlist1">
  977. <strong>--use-head</strong>[=<em>true</em>|<em>false</em>]
  978. </dt>
  979. <dd>
  980. <p>
  981. Use HEAD method for the first request to the HTTP server.
  982. Default: <em>false</em>
  983. </p>
  984. </dd>
  985. <dt class="hdlist1">
  986. <strong>-U</strong>, <strong>--user-agent</strong>=USER_AGENT
  987. </dt>
  988. <dd>
  989. <p>
  990. Set user agent for HTTP(S) downloads.
  991. Default: <em>aria2/$VERSION</em>, $VERSION is replaced by package version.
  992. </p>
  993. </dd>
  994. </dl></div>
  995. <h3 id="_ftp_specific_options">FTP Specific Options</h3><div style="clear:left"></div>
  996. <div class="dlist"><dl>
  997. <dt class="hdlist1">
  998. <strong>--ftp-user</strong>=USER
  999. </dt>
  1000. <dd>
  1001. <p>
  1002. Set FTP user. This affects all URLs.
  1003. Default: <em>anonymous</em>
  1004. </p>
  1005. </dd>
  1006. <dt class="hdlist1">
  1007. <strong>--ftp-passwd</strong>=PASSWD
  1008. </dt>
  1009. <dd>
  1010. <p>
  1011. Set FTP password. This affects all URLs.
  1012. If user name is embedded but password is missing in URI, aria2 tries
  1013. to resolve password using .netrc. If password is found in .netrc,
  1014. then use it as password. If not, use the password specified in this
  1015. option.
  1016. Default: <em>ARIA2USER@</em>
  1017. </p>
  1018. </dd>
  1019. <dt class="hdlist1">
  1020. <strong>-p</strong>, <strong>--ftp-pasv</strong>[=<em>true</em>|<em>false</em>]
  1021. </dt>
  1022. <dd>
  1023. <p>
  1024. Use the passive mode in FTP.
  1025. If <em>false</em> is given, the active mode will be used.
  1026. Default: <em>true</em>
  1027. </p>
  1028. </dd>
  1029. <dt class="hdlist1">
  1030. <strong>--ftp-proxy</strong>=PROXY
  1031. </dt>
  1032. <dd>
  1033. <p>
  1034. Use this proxy server for FTP. See also <strong>--all-proxy</strong> option.
  1035. This affects all URLs.
  1036. The format of PROXY is [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  1037. </p>
  1038. </dd>
  1039. <dt class="hdlist1">
  1040. <strong>--ftp-type</strong>=TYPE
  1041. </dt>
  1042. <dd>
  1043. <p>
  1044. Set FTP transfer type. TYPE is either <em>binary</em> or <em>ascii</em>.
  1045. Default: <em>binary</em>
  1046. </p>
  1047. </dd>
  1048. <dt class="hdlist1">
  1049. <strong>--ftp-reuse-connection</strong>[=<em>true</em>|<em>false</em>]
  1050. </dt>
  1051. <dd>
  1052. <p>
  1053. Reuse connection in FTP.
  1054. Default: <em>true</em>
  1055. </p>
  1056. </dd>
  1057. </dl></div>
  1058. <h3 id="_bittorrent_metalink_options">BitTorrent/Metalink Options</h3><div style="clear:left"></div>
  1059. <div class="dlist"><dl>
  1060. <dt class="hdlist1">
  1061. <strong>--select-file</strong>=INDEX&#8230;
  1062. </dt>
  1063. <dd>
  1064. <p>
  1065. Set file to download by specifying its index.
  1066. You can find the file index using the <strong>--show-files</strong> option.
  1067. Multiple indexes can be specified by using ",", for example: <em>3,6</em>.
  1068. You can also use "-" to specify a range: <em>1-5</em>.
  1069. "," and "-" can be used together: <em>1-5,8,9</em>.
  1070. When used with the -M option, index may vary depending on the query
  1071. (see <strong>--metalink-</strong>* options).
  1072. </p>
  1073. </dd>
  1074. </dl></div>
  1075. <div class="admonitionblock">
  1076. <table><tr>
  1077. <td class="icon">
  1078. <div class="title">Note</div>
  1079. </td>
  1080. <td class="content">In multi file torrent, the adjacent files specified by this option may
  1081. also be downloaded. This is by design, not a bug.
  1082. A single piece may include several files or part of files, and aria2
  1083. writes the piece to the appropriate files.</td>
  1084. </tr></table>
  1085. </div>
  1086. <div class="dlist"><dl>
  1087. <dt class="hdlist1">
  1088. <strong>-S</strong>, <strong>--show-files</strong>
  1089. </dt>
  1090. <dd>
  1091. <p>
  1092. Print file listing of .torrent or .metalink file and exit.
  1093. In case of .torrent file, additional information
  1094. (infohash, piece length, etc) is also printed.
  1095. </p>
  1096. </dd>
  1097. </dl></div>
  1098. <h3 id="_bittorrent_specific_options">BitTorrent Specific Options</h3><div style="clear:left"></div>
  1099. <div class="dlist"><dl>
  1100. <dt class="hdlist1">
  1101. <strong>--bt-external-ip</strong>=IPADDRESS
  1102. </dt>
  1103. <dd>
  1104. <p>
  1105. Specify the external IP address to report to a BitTorrent
  1106. tracker. Although this function is named "external", it can accept
  1107. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  1108. </p>
  1109. </dd>
  1110. <dt class="hdlist1">
  1111. <strong>--bt-hash-check-seed</strong>[=<em>true</em>|<em>false</em>]
  1112. </dt>
  1113. <dd>
  1114. <p>
  1115. If <em>true</em> is given, after hash check using <strong>--check-integrity</strong> option and
  1116. file is complete, continue to seed file. If you want to check file
  1117. and download it only when it is damaged or incomplete, set this
  1118. option to <em>false</em>. This option has effect only on BitTorrent download.
  1119. Default: <em>true</em>
  1120. </p>
  1121. </dd>
  1122. <dt class="hdlist1">
  1123. <strong>--bt-max-open-files</strong>=NUM
  1124. </dt>
  1125. <dd>
  1126. <p>
  1127. Specify maximum number of files to open in each BitTorrent download.
  1128. Default: <em>100</em>
  1129. </p>
  1130. </dd>
  1131. <dt class="hdlist1">
  1132. <strong>--bt-max-peers</strong>=NUM
  1133. </dt>
  1134. <dd>
  1135. <p>
  1136. Specify the maximum number of peers per torrent. <em>0</em> means
  1137. unlimited. See also <strong>--bt-request-peer-speed-limit</strong> option.
  1138. Default: <em>55</em>
  1139. </p>
  1140. </dd>
  1141. <dt class="hdlist1">
  1142. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  1143. </dt>
  1144. <dd>
  1145. <p>
  1146. Set minimum level of encryption method.
  1147. If several encryption methods are provided by a peer, aria2 chooses the lowest
  1148. one which satisfies the given level.
  1149. Default: <em>plain</em>
  1150. </p>
  1151. </dd>
  1152. <dt class="hdlist1">
  1153. <strong>--bt-prioritize-piece</strong>=<em>head</em>[=SIZE],<em>tail</em>[=SIZE]
  1154. </dt>
  1155. <dd>
  1156. <p>
  1157. Try to download first and last pieces of each file first. This is
  1158. useful for previewing files. The argument can contain 2 keywords:
  1159. <em>head</em> and <em>tail</em>. To include both keywords, they must be separated
  1160. by comma. These keywords can take one parameter, SIZE. For example,
  1161. if <em>head</em>=SIZE is specified, pieces in the range of first SIZE bytes
  1162. of each file get higher priority. <em>tail</em>=SIZE means the range of
  1163. last SIZE bytes of each file. SIZE can include <em>K</em> or <em>M</em>(1K = 1024,
  1164. 1M = 1024K). If SIZE is omitted, SIZE=1M is used.
  1165. </p>
  1166. </dd>
  1167. <dt class="hdlist1">
  1168. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  1169. </dt>
  1170. <dd>
  1171. <p>
  1172. If true is given, aria2 doesn&#8217;t accept and establish connection with legacy
  1173. BitTorrent handshake(\19BitTorrent protocol).
  1174. Thus aria2 always uses Obfuscation handshake.
  1175. Default: <em>false</em>
  1176. </p>
  1177. </dd>
  1178. <dt class="hdlist1">
  1179. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  1180. </dt>
  1181. <dd>
  1182. <p>
  1183. If the whole download speed of every torrent is lower than SPEED,
  1184. aria2 temporarily increases the number of peers to try for more
  1185. download speed. Configuring this option with your preferred download
  1186. speed can increase your download speed in some cases.
  1187. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1188. Default: <em>50K</em>
  1189. </p>
  1190. </dd>
  1191. <dt class="hdlist1">
  1192. <strong>--bt-save-metadata</strong>[=<em>true</em>|<em>false</em>]
  1193. </dt>
  1194. <dd>
  1195. <p>
  1196. Save metadata as .torrent file. This option has effect only when
  1197. BitTorrent Magnet URI is used. The filename is hex encoded info
  1198. hash with suffix .torrent. The directory to be saved is the same
  1199. directory where download file is saved. If the same file already
  1200. exists, metadata is not saved. Default: <em>false</em>
  1201. </p>
  1202. </dd>
  1203. <dt class="hdlist1">
  1204. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  1205. </dt>
  1206. <dd>
  1207. <p>
  1208. Seed previously downloaded files without verifying piece hashes.
  1209. Default: <em>false</em>
  1210. </p>
  1211. </dd>
  1212. <dt class="hdlist1">
  1213. <strong>--bt-stop-timeout</strong>=SEC
  1214. </dt>
  1215. <dd>
  1216. <p>
  1217. Stop BitTorrent download if download speed is 0 in consecutive SEC
  1218. seconds. If <em>0</em> is given, this feature is disabled. Default: <em>0</em>
  1219. </p>
  1220. </dd>
  1221. <dt class="hdlist1">
  1222. <strong>--bt-tracker-interval</strong>=SEC
  1223. </dt>
  1224. <dd>
  1225. <p>
  1226. Set the interval in seconds between tracker requests. This
  1227. completely overrides interval value and aria2 just uses this value
  1228. and ignores the min interval and interval value in the response of
  1229. tracker. If <em>0</em> is set, aria2 determines interval based on the
  1230. response of tracker and the download progress. Default: <em>0</em>
  1231. </p>
  1232. </dd>
  1233. <dt class="hdlist1">
  1234. <strong>--dht-entry-point</strong>=HOST:PORT
  1235. </dt>
  1236. <dd>
  1237. <p>
  1238. Set host and port as an entry point to DHT network.
  1239. </p>
  1240. </dd>
  1241. <dt class="hdlist1">
  1242. <strong>--dht-file-path</strong>=PATH
  1243. </dt>
  1244. <dd>
  1245. <p>
  1246. Change the DHT routing table file to PATH.
  1247. Default: <em>$HOME/.aria2/dht.dat</em>
  1248. </p>
  1249. </dd>
  1250. <dt class="hdlist1">
  1251. <strong>--dht-listen-port</strong>=PORT&#8230;
  1252. </dt>
  1253. <dd>
  1254. <p>
  1255. Set UDP listening port for DHT.
  1256. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1257. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  1258. together.
  1259. Default: <em>6881-6999</em>
  1260. </p>
  1261. </dd>
  1262. </dl></div>
  1263. <div class="admonitionblock">
  1264. <table><tr>
  1265. <td class="icon">
  1266. <div class="title">Note</div>
  1267. </td>
  1268. <td class="content">Make sure that the specified ports are open for incoming UDP traffic.</td>
  1269. </tr></table>
  1270. </div>
  1271. <div class="dlist"><dl>
  1272. <dt class="hdlist1">
  1273. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  1274. </dt>
  1275. <dd>
  1276. <p>
  1277. Enable DHT functionality. If a private flag is set in a torrent, aria2
  1278. doesn&#8217;t use DHT for that download even if <em>true</em> is given.
  1279. Default: <em>true</em>
  1280. </p>
  1281. </dd>
  1282. <dt class="hdlist1">
  1283. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  1284. </dt>
  1285. <dd>
  1286. <p>
  1287. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  1288. feature is disabled for that download even if <em>true</em> is given.
  1289. Default: <em>true</em>
  1290. </p>
  1291. </dd>
  1292. <dt class="hdlist1">
  1293. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1294. </dt>
  1295. <dd>
  1296. <p>
  1297. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  1298. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  1299. file and downloads files mentioned in it.
  1300. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  1301. kept in memory.
  1302. If <em>false</em> is specified, the action mentioned above is not taken.
  1303. Default: <em>true</em>
  1304. </p>
  1305. </dd>
  1306. <dt class="hdlist1">
  1307. <strong>-O</strong>, <strong>--index-out</strong>=INDEX=PATH
  1308. </dt>
  1309. <dd>
  1310. <p>
  1311. Set file path for file with index=INDEX. You can find the file index
  1312. using the <strong>--show-files</strong> option. PATH is a relative path to the
  1313. path specified in <strong>--dir</strong> option. You can use this option multiple
  1314. times. Using this option, you can specify the output filenames of
  1315. BitTorrent downloads.
  1316. </p>
  1317. </dd>
  1318. <dt class="hdlist1">
  1319. <strong>--listen-port</strong>=PORT&#8230;
  1320. </dt>
  1321. <dd>
  1322. <p>
  1323. Set TCP port number for BitTorrent downloads.
  1324. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1325. You can also use "-" to specify a range: <em>6881-6999</em>.
  1326. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1327. Default: <em>6881-6999</em>
  1328. </p>
  1329. </dd>
  1330. </dl></div>
  1331. <div class="admonitionblock">
  1332. <table><tr>
  1333. <td class="icon">
  1334. <div class="title">Note</div>
  1335. </td>
  1336. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1337. </tr></table>
  1338. </div>
  1339. <div class="dlist"><dl>
  1340. <dt class="hdlist1">
  1341. <strong>--max-overall-upload-limit</strong>=SPEED
  1342. </dt>
  1343. <dd>
  1344. <p>
  1345. Set max overall upload speed in bytes/sec.
  1346. <em>0</em> means unrestricted.
  1347. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1348. To limit the upload speed per torrent, use <strong>--max-upload-limit</strong> option.
  1349. Default: <em>0</em>
  1350. </p>
  1351. </dd>
  1352. <dt class="hdlist1">
  1353. <strong>-u</strong>, <strong>--max-upload-limit</strong>=SPEED
  1354. </dt>
  1355. <dd>
  1356. <p>
  1357. Set max upload speed per each torrent in bytes/sec.
  1358. <em>0</em> means unrestricted.
  1359. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1360. To limit the overall upload speed, use <strong>--max-overall-upload-limit</strong> option.
  1361. Default: <em>0</em>
  1362. </p>
  1363. </dd>
  1364. <dt class="hdlist1">
  1365. <strong>--peer-id-prefix</strong>=PEER_ID_PREFIX
  1366. </dt>
  1367. <dd>
  1368. <p>
  1369. Specify the prefix of peer ID. The peer ID in
  1370. BitTorrent is 20 byte length. If more than 20
  1371. bytes are specified, only first 20 bytes are
  1372. used. If less than 20 bytes are specified, random
  1373. byte data are added to make its length 20 bytes.
  1374. Default: <em>aria2/$VERSION-</em>, $VERSION is replaced by package version.
  1375. </p>
  1376. </dd>
  1377. <dt class="hdlist1">
  1378. <strong>--seed-ratio</strong>=RATIO
  1379. </dt>
  1380. <dd>
  1381. <p>
  1382. Specify share ratio. Seed completed torrents until share ratio reaches
  1383. RATIO.
  1384. You are strongly encouraged to specify equals or more than <em>1.0</em> here.
  1385. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1386. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1387. at least one of the conditions is satisfied.
  1388. Default: <em>1.0</em>
  1389. </p>
  1390. </dd>
  1391. <dt class="hdlist1">
  1392. <strong>--seed-time</strong>=MINUTES
  1393. </dt>
  1394. <dd>
  1395. <p>
  1396. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1397. </p>
  1398. </dd>
  1399. <dt class="hdlist1">
  1400. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1401. </dt>
  1402. <dd>
  1403. <p>
  1404. The path to the .torrent file. You are not required to use this
  1405. option because you can specify .torrent files without <strong>-T</strong>.
  1406. </p>
  1407. </dd>
  1408. </dl></div>
  1409. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1410. <div class="dlist"><dl>
  1411. <dt class="hdlist1">
  1412. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1413. </dt>
  1414. <dd>
  1415. <p>
  1416. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metalink" or content
  1417. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1418. file and downloads files mentioned in it.
  1419. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1420. kept in memory.
  1421. If <em>false</em> is specified, the action mentioned above is not taken.
  1422. Default: <em>true</em>
  1423. </p>
  1424. </dd>
  1425. <dt class="hdlist1">
  1426. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1427. </dt>
  1428. <dd>
  1429. <p>
  1430. The file path to .metalink file. Reads input from stdin when <em>-</em> is
  1431. specified. You are not required to use this option because you can
  1432. specify .metalink files without <strong>-M</strong>.
  1433. </p>
  1434. </dd>
  1435. <dt class="hdlist1">
  1436. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1437. </dt>
  1438. <dd>
  1439. <p>
  1440. The number of servers to connect to simultaneously.
  1441. Some Metalinks regulate the number of servers to connect.
  1442. aria2 strictly respects them.
  1443. This means that if Metalink defines the maxconnections attribute lower
  1444. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1445. instead of NUM_SERVERS.
  1446. See also <strong>-s</strong> and <strong>-j</strong> options.
  1447. Default: <em>5</em>
  1448. </p>
  1449. </dd>
  1450. <dt class="hdlist1">
  1451. <strong>--metalink-language</strong>=LANGUAGE
  1452. </dt>
  1453. <dd>
  1454. <p>
  1455. The language of the file to download.
  1456. </p>
  1457. </dd>
  1458. <dt class="hdlist1">
  1459. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1460. </dt>
  1461. <dd>
  1462. <p>
  1463. The location of the preferred server.
  1464. A comma-delimited list of locations is acceptable, for example, <em>JP,US</em>.
  1465. </p>
  1466. </dd>
  1467. <dt class="hdlist1">
  1468. <strong>--metalink-os</strong>=OS
  1469. </dt>
  1470. <dd>
  1471. <p>
  1472. The operating system of the file to download.
  1473. </p>
  1474. </dd>
  1475. <dt class="hdlist1">
  1476. <strong>--metalink-version</strong>=VERSION
  1477. </dt>
  1478. <dd>
  1479. <p>
  1480. The version of the file to download.
  1481. </p>
  1482. </dd>
  1483. <dt class="hdlist1">
  1484. <strong>--metalink-preferred-protocol</strong>=PROTO
  1485. </dt>
  1486. <dd>
  1487. <p>
  1488. Specify preferred protocol.
  1489. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1490. Specify <em>none</em> to disable this feature.
  1491. Default: <em>none</em>
  1492. </p>
  1493. </dd>
  1494. <dt class="hdlist1">
  1495. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1496. </dt>
  1497. <dd>
  1498. <p>
  1499. If <em>true</em> is given and several protocols are available for a mirror in a
  1500. metalink file, aria2 uses one of them.
  1501. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1502. protocol.
  1503. Default: <em>true</em>
  1504. </p>
  1505. </dd>
  1506. </dl></div>
  1507. <h3 id="_xml_rpc_options">XML-RPC Options</h3><div style="clear:left"></div>
  1508. <div class="dlist"><dl>
  1509. <dt class="hdlist1">
  1510. <strong>--enable-xml-rpc</strong>[=<em>true</em>|<em>false</em>]
  1511. </dt>
  1512. <dd>
  1513. <p>
  1514. Enable XML-RPC server. It is strongly recommended to set username
  1515. and password using <strong>--xml-rpc-user</strong> and <strong>--xml-rpc-passwd</strong>
  1516. option. See also <strong>--xml-rpc-listen-port</strong> option. Default: <em>false</em>
  1517. </p>
  1518. </dd>
  1519. <dt class="hdlist1">
  1520. <strong>--xml-rpc-listen-all</strong>[=<em>true</em>|<em>false</em>]
  1521. </dt>
  1522. <dd>
  1523. <p>
  1524. Listen incoming XML-RPC requests on all network interfaces. If false
  1525. is given, listen only on local loopback interface. Default: <em>false</em>
  1526. </p>
  1527. </dd>
  1528. <dt class="hdlist1">
  1529. <strong>--xml-rpc-listen-port</strong>=PORT
  1530. </dt>
  1531. <dd>
  1532. <p>
  1533. Specify a port number for XML-RPC server to listen to. Possible
  1534. Values: <em>1024</em>-<em>65535</em> Default: <em>6800</em>
  1535. </p>
  1536. </dd>
  1537. <dt class="hdlist1">
  1538. <strong>--xml-rpc-max-request-size</strong>=SIZE
  1539. </dt>
  1540. <dd>
  1541. <p>
  1542. Set max size of XML-RPC request. If aria2 detects the request is
  1543. more than SIZE bytes, it drops connection. Default: <em>2M</em>
  1544. </p>
  1545. </dd>
  1546. <dt class="hdlist1">
  1547. <strong>--xml-rpc-passwd</strong>=PASSWD
  1548. </dt>
  1549. <dd>
  1550. <p>
  1551. Set XML-RPC password.
  1552. </p>
  1553. </dd>
  1554. <dt class="hdlist1">
  1555. <strong>--xml-rpc-user</strong>=USER
  1556. </dt>
  1557. <dd>
  1558. <p>
  1559. Set XML-RPC user.
  1560. </p>
  1561. </dd>
  1562. </dl></div>
  1563. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1564. <div class="dlist"><dl>
  1565. <dt class="hdlist1">
  1566. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1567. </dt>
  1568. <dd>
  1569. <p>
  1570. If <em>false</em> is given, and a file already exists but the corresponding
  1571. control file (filename.aria2) doesn&#8217;t exist, then aria2 will not
  1572. re-download the file. See also <strong>--auto-file-renaming</strong> option.
  1573. Default: <em>false</em>
  1574. </p>
  1575. </dd>
  1576. <dt class="hdlist1">
  1577. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1578. </dt>
  1579. <dd>
  1580. <p>
  1581. If false is given, aria2 aborts download when a piece length is different
  1582. from one in a control file.
  1583. If true is given, you can proceed but some download progress will be lost.
  1584. Default: <em>false</em>
  1585. </p>
  1586. </dd>
  1587. <dt class="hdlist1">
  1588. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1589. </dt>
  1590. <dd>
  1591. <p>
  1592. Enable asynchronous DNS.
  1593. Default: <em>true</em>
  1594. </p>
  1595. </dd>
  1596. <dt class="hdlist1">
  1597. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1598. </dt>
  1599. <dd>
  1600. <p>
  1601. Rename file name if the same file already exists.
  1602. This option works only in HTTP(S)/FTP download.
  1603. The new file name has a dot and a number(1..9999) appended.
  1604. Default: <em>true</em>
  1605. </p>
  1606. </dd>
  1607. <dt class="hdlist1">
  1608. <strong>--auto-save-interval</strong>=SEC
  1609. </dt>
  1610. <dd>
  1611. <p>
  1612. Save a control file(*.aria2) every SEC seconds.
  1613. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1614. control file when it stops regardless of the value.
  1615. The possible values are between <em>0</em> to <em>600</em>.
  1616. Default: <em>60</em>
  1617. </p>
  1618. </dd>
  1619. <dt class="hdlist1">
  1620. <strong>--conf-path</strong>=PATH
  1621. </dt>
  1622. <dd>
  1623. <p>
  1624. Change the configuration file path to PATH.
  1625. Default: <em>$HOME/.aria2/aria2.conf</em>
  1626. </p>
  1627. </dd>
  1628. <dt class="hdlist1">
  1629. <strong>-D</strong>, <strong>--daemon</strong>
  1630. </dt>
  1631. <dd>
  1632. <p>
  1633. Run as daemon. The current working directory will be changed to <em>/</em>
  1634. and standard input, standard output and standard error will be
  1635. redirected to <em>/dev/null</em>. Default: <em>false</em>
  1636. </p>
  1637. </dd>
  1638. <dt class="hdlist1">
  1639. <strong>--disable-ipv6</strong>[=<em>true</em>|<em>false</em>]
  1640. </dt>
  1641. <dd>
  1642. <p>
  1643. Disable IPv6. This is useful if you have to use broken DNS and want
  1644. to avoid terribly slow AAAA record lookup. Default: <em>false</em>
  1645. </p>
  1646. </dd>
  1647. <dt class="hdlist1">
  1648. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1649. </dt>
  1650. <dd>
  1651. <p>
  1652. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1653. Turn off if you encounter any error.
  1654. Default: <em>true</em>
  1655. </p>
  1656. </dd>
  1657. <dt class="hdlist1">
  1658. <strong>--event-poll</strong>=POLL
  1659. </dt>
  1660. <dd>
  1661. <p>
  1662. Specify the method for polling events. The possible Values are
  1663. <em>epoll</em> and <em>select</em>. If you use recent Linux that has epoll, then
  1664. the default value is <em>epoll</em>. Otherwise, the default value is
  1665. <em>select</em>.
  1666. </p>
  1667. </dd>
  1668. <dt class="hdlist1">
  1669. <strong>--file-allocation</strong>=METHOD
  1670. </dt>
  1671. <dd>
  1672. <p>
  1673. Specify file allocation method.
  1674. <em>none</em> doesn&#8217;t pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1675. before download begins. This may take some time depending on the size of the
  1676. file.
  1677. If you are using newer file systems such as ext4
  1678. (with extents support), btrfs or xfs, <em>falloc</em> is
  1679. your best choice. It allocates large(few GiB)
  1680. files almost instantly. Don&#8217;t use <em>falloc</em> with
  1681. legacy file systems such as ext3 because it takes
  1682. almost same time as <em>prealloc</em> and it blocks aria2
  1683. entirely until allocation finishes. <em>falloc</em> may
  1684. not be available if your system doesn&#8217;t have
  1685. <strong>posix_fallocate</strong>() function.
  1686. Possible Values: <em>none</em>, <em>prealloc</em>, <em>falloc</em>
  1687. Default: <em>prealloc</em>
  1688. </p>
  1689. </dd>
  1690. <dt class="hdlist1">
  1691. <strong>--interface</strong>=INTERFACE
  1692. </dt>
  1693. <dd>
  1694. <p>
  1695. Bind sockets to given interface. You can specify interface name, IP
  1696. address and hostname.
  1697. Possible Values: interface, IP address, hostname
  1698. </p>
  1699. </dd>
  1700. </dl></div>
  1701. <div class="admonitionblock">
  1702. <table><tr>
  1703. <td class="icon">
  1704. <div class="title">Note</div>
  1705. </td>
  1706. <td class="content">If an interface has multiple addresses, it is highly recommended to
  1707. specify IP address explicitly. See also <strong>--disable-ipv6</strong>. If your
  1708. system doesn&#8217;t have getifaddrs(), this option doesn&#8217;t accept interface
  1709. name.</td>
  1710. </tr></table>
  1711. </div>
  1712. <div class="dlist"><dl>
  1713. <dt class="hdlist1">
  1714. <strong>--log-level</strong>=LEVEL
  1715. </dt>
  1716. <dd>
  1717. <p>
  1718. Set log level to output.
  1719. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1720. Default: <em>debug</em>
  1721. </p>
  1722. </dd>
  1723. <dt class="hdlist1">
  1724. <strong>--on-download-complete</strong>=COMMAND
  1725. </dt>
  1726. <dd>
  1727. <p>
  1728. Set the command to be executed when download completes. See
  1729. <strong>--on-download-start</strong> option for the requirement of COMMAND. See
  1730. also <strong>--on-download-stop</strong> option. Possible Values:
  1731. <em>/path/to/command</em>
  1732. </p>
  1733. </dd>
  1734. <dt class="hdlist1">
  1735. <strong>--on-download-error</strong>=COMMAND
  1736. </dt>
  1737. <dd>
  1738. <p>
  1739. Set the command to be executed when download aborts due to error.
  1740. See <strong>--on-download-start</strong> option for the requirement of COMMAND.
  1741. See also <strong>--on-download-stop</strong> option. Possible Values:
  1742. <em>/path/to/command</em>
  1743. </p>
  1744. </dd>
  1745. <dt class="hdlist1">
  1746. <strong>--on-download-start</strong>=COMMAND
  1747. </dt>
  1748. <dd>
  1749. <p>
  1750. Set the command to be executed when download starts up. COMMAND must
  1751. take just one argument and GID is passed to COMMAND as a first
  1752. argument. Possible Values: <em>/path/to/command</em>
  1753. </p>
  1754. </dd>
  1755. <dt class="hdlist1">
  1756. <strong>--on-download-stop</strong>=COMMAND
  1757. </dt>
  1758. <dd>
  1759. <p>
  1760. Set the command to be executed when download stops. You can override
  1761. the command to be executed for particular download result using
  1762. <strong>--on-download-complete</strong> and <strong>--on-download-error</strong>. If they are
  1763. specified, command specified in this option is not executed. See
  1764. <strong>--on-download-start</strong> option for the requirement of COMMAND.
  1765. Possible Values: <em>/path/to/command</em>
  1766. </p>
  1767. </dd>
  1768. <dt class="hdlist1">
  1769. <strong>--summary-interval</strong>=SEC
  1770. </dt>
  1771. <dd>
  1772. <p>
  1773. Set interval in seconds to output download progress summary.
  1774. Setting <em>0</em> suppresses the output.
  1775. Default: <em>60</em>
  1776. </p>
  1777. </dd>
  1778. </dl></div>
  1779. <div class="admonitionblock">
  1780. <table><tr>
  1781. <td class="icon">
  1782. <div class="title">Note</div>
  1783. </td>
  1784. <td class="content">In multi file torrent downloads, the files adjacent forward to the specified files
  1785. are also allocated if they share the same piece.</td>
  1786. </tr></table>
  1787. </div>
  1788. <div class="dlist"><dl>
  1789. <dt class="hdlist1">
  1790. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  1791. </dt>
  1792. <dd>
  1793. <p>
  1794. Fetch URIs in the command-line sequentially and download each URI in a
  1795. separate session, like the usual command-line download utilities.
  1796. Default: <em>false</em>
  1797. </p>
  1798. </dd>
  1799. <dt class="hdlist1">
  1800. <strong>--max-overall-download-limit</strong>=SPEED
  1801. </dt>
  1802. <dd>
  1803. <p>
  1804. Set max overall download speed in bytes/sec. <em>0</em> means
  1805. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  1806. limit the download speed per download, use <strong>--max-download-limit</strong>
  1807. option. Default: <em>0</em>
  1808. </p>
  1809. </dd>
  1810. <dt class="hdlist1">
  1811. <strong>--max-download-limit</strong>=SPEED
  1812. </dt>
  1813. <dd>
  1814. <p>
  1815. Set max download speed per each download in bytes/sec. <em>0</em> means
  1816. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  1817. limit the overall download speed, use <strong>--max-overall-download-limit</strong>
  1818. option. Default: <em>0</em>
  1819. </p>
  1820. </dd>
  1821. <dt class="hdlist1">
  1822. <strong>--no-conf</strong>
  1823. </dt>
  1824. <dd>
  1825. <p>
  1826. Disable loading aria2.conf file.
  1827. </p>
  1828. </dd>
  1829. <dt class="hdlist1">
  1830. <strong>--no-file-allocation-limit</strong>=SIZE
  1831. </dt>
  1832. <dd>
  1833. <p>
  1834. No file allocation is made for files whose size is smaller than SIZE.
  1835. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1836. Default: <em>5M</em>
  1837. </p>
  1838. </dd>
  1839. <dt class="hdlist1">
  1840. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  1841. </dt>
  1842. <dd>
  1843. <p>
  1844. Enable parameterized URI support.
  1845. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  1846. Also you can specify numeric sequences with step counter:
  1847. <em>http://host/image[000-100:2].img</em>.
  1848. A step counter can be omitted.
  1849. If all URIs do not point to the same file, such as the second example above,
  1850. -Z option is required.
  1851. Default: <em>false</em>
  1852. </p>
  1853. </dd>
  1854. <dt class="hdlist1">
  1855. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  1856. </dt>
  1857. <dd>
  1858. <p>
  1859. Make aria2 quiet (no console output).
  1860. Default: <em>false</em>
  1861. </p>
  1862. </dd>
  1863. <dt class="hdlist1">
  1864. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  1865. </dt>
  1866. <dd>
  1867. <p>
  1868. Validate chunk of data by calculating checksum while downloading a file if
  1869. chunk checksums are provided.
  1870. Default: <em>true</em>
  1871. </p>
  1872. </dd>
  1873. <dt class="hdlist1">
  1874. <strong>--stop</strong>=SEC
  1875. </dt>
  1876. <dd>
  1877. <p>
  1878. Stop application after SEC seconds has passed.
  1879. If <em>0</em> is given, this feature is disabled.
  1880. Default: <em>0</em>
  1881. </p>
  1882. </dd>
  1883. <dt class="hdlist1">
  1884. <strong>-v</strong>, <strong>--version</strong>
  1885. </dt>
  1886. <dd>
  1887. <p>
  1888. Print the version number, copyright and the configuration information and
  1889. exit.
  1890. </p>
  1891. </dd>
  1892. </dl></div>
  1893. <h3 id="_options_that_take_an_optional_argument">Options That Take An Optional Argument</h3><div style="clear:left"></div>
  1894. <div class="paragraph"><p>The options that have its argument surrounded by square brackets([])
  1895. take an optional argument. Usually omiting the argument is evaluated to <em>true</em>.
  1896. If you use short form of these options(such as <em>-V</em>) and give
  1897. an argument, then the option name and its argument should be concatenated(e.g.
  1898. <em>-Vfalse</em>). If any spaces are inserted between the option name and the argument,
  1899. the argument will be treated as URI and usually this is not what you expect.</p></div>
  1900. <h3 id="_uri_magnet_torrent_file_metalink_file">URI, MAGNET, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  1901. <div class="paragraph"><p>You can specify multiple URLs in command-line. Unless you specify
  1902. <strong>-Z</strong> option, all URLs must point to the same file or downloading will
  1903. fail.</p></div>
  1904. <div class="paragraph"><p>You can specify arbitrary number of BitTorrent Magnet URI. Please note
  1905. that they are always treated as a separate download. Both hex encoded
  1906. 40 characters Info Hash and Base32 encoded 32 characters Info Hash are
  1907. supported. The multiple "tr" paramters are supported. Because
  1908. BitTorrent Magnet URI is likely to contain "&amp;" character, it is highly
  1909. recommended to always quote URI with single(') or double(") quotation.
  1910. It is strongly recommended to enable DHT especially when "tr"
  1911. parameter is missing. See <a href="http://www.bittorrent.org/beps/bep_0009.html">http://www.bittorrent.org/beps/bep_0009.html</a>
  1912. for more details about BitTorrent Magnet URI.</p></div>
  1913. <div class="paragraph"><p>You can also specify arbitrary number of torrent files and metalink files
  1914. stored on a local drive. Please note that they are always treated as a
  1915. separate download.</p></div>
  1916. <div class="paragraph"><p>You can specify both torrent file with -T option and URLs. By doing
  1917. this, you can download a file from both torrent swarm and HTTP(S)/FTP
  1918. server at the same time, while the data from HTTP(S)/FTP are uploaded
  1919. to the torrent swarm. For single file torrents, URL can be a complete
  1920. URL pointing to the resource or if URL ends with /, name in torrent
  1921. file in torrent is added. For multi-file torrents, name and path are
  1922. added to form a URL for each file.</p></div>
  1923. <div class="admonitionblock">
  1924. <table><tr>
  1925. <td class="icon">
  1926. <div class="title">Note</div>
  1927. </td>
  1928. <td class="content">Make sure that URL is quoted with single(') or double(") quotation if it
  1929. contains "&amp;" or any characters that have special meaning in shell.</td>
  1930. </tr></table>
  1931. </div>
  1932. <h3 id="_resuming_download">Resuming Download</h3><div style="clear:left"></div>
  1933. <div class="paragraph"><p>Usually, you can resume transfer by just issuing same command(aria2c
  1934. URL) if the previous transfer is made by aria2.</p></div>
  1935. <div class="paragraph"><p>If the previous transfer is made by a browser or wget like sequential
  1936. download manager, then use -c option to continue the transfer(aria2c
  1937. <strong>-c</strong> URL).</p></div>
  1938. </div>
  1939. <h2 id="_exit_status">EXIT STATUS</h2>
  1940. <div class="sectionbody">
  1941. <div class="paragraph"><p>Because aria2 can handle multiple downloads at once, it encounters
  1942. lots of errors in a session. aria2 returns the following exit status
  1943. based on the last error encountered.</p></div>
  1944. <div class="dlist"><dl>
  1945. <dt class="hdlist1">
  1946. <strong>0</strong>
  1947. </dt>
  1948. <dd>
  1949. <p>
  1950. If all downloads are successful.
  1951. </p>
  1952. </dd>
  1953. <dt class="hdlist1">
  1954. <strong>1</strong>
  1955. </dt>
  1956. <dd>
  1957. <p>
  1958. If an unknown error occurs.
  1959. </p>
  1960. </dd>
  1961. <dt class="hdlist1">
  1962. <strong>2</strong>
  1963. </dt>
  1964. <dd>
  1965. <p>
  1966. If time out occurs.
  1967. </p>
  1968. </dd>
  1969. <dt class="hdlist1">
  1970. <strong>3</strong>
  1971. </dt>
  1972. <dd>
  1973. <p>
  1974. If a resource is not found.
  1975. </p>
  1976. </dd>
  1977. <dt class="hdlist1">
  1978. <strong>4</strong>
  1979. </dt>
  1980. <dd>
  1981. <p>
  1982. If aria2 sees the specfied number of "resource not found" error.
  1983. See <strong>--max-file-not-found</strong> option).
  1984. </p>
  1985. </dd>
  1986. <dt class="hdlist1">
  1987. <strong>5</strong>
  1988. </dt>
  1989. <dd>
  1990. <p>
  1991. If a download aborts because download speed is too slow.
  1992. See <strong>--lowest-speed-limit</strong> option)
  1993. </p>
  1994. </dd>
  1995. <dt class="hdlist1">
  1996. <strong>6</strong>
  1997. </dt>
  1998. <dd>
  1999. <p>
  2000. If network problem occurs.
  2001. </p>
  2002. </dd>
  2003. <dt class="hdlist1">
  2004. <strong>7</strong>
  2005. </dt>
  2006. <dd>
  2007. <p>
  2008. If there are unfinished downloads. This error is only reported if
  2009. all finished downloads are successful and there are unfinished
  2010. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  2011. or sending TERM or INT signal.
  2012. </p>
  2013. </dd>
  2014. </dl></div>
  2015. <div class="admonitionblock">
  2016. <table><tr>
  2017. <td class="icon">
  2018. <div class="title">Note</div>
  2019. </td>
  2020. <td class="content">An error occurred in a finished download will not be reported
  2021. as exit status.</td>
  2022. </tr></table>
  2023. </div>
  2024. </div>
  2025. <h2 id="_environment">ENVIRONMENT</h2>
  2026. <div class="sectionbody">
  2027. <div class="paragraph"><p>aria2 recognizes the following environment variables.</p></div>
  2028. <div class="dlist"><dl>
  2029. <dt class="hdlist1">
  2030. http_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2031. </dt>
  2032. <dd>
  2033. <p>
  2034. Specify proxy server for use in HTTP.
  2035. Overrides http-proxy value in configuration file.
  2036. The command-line option <strong>--http-proxy</strong> overrides this value.
  2037. </p>
  2038. </dd>
  2039. <dt class="hdlist1">
  2040. https_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2041. </dt>
  2042. <dd>
  2043. <p>
  2044. Specify proxy server for use in HTTPS.
  2045. Overrides https-proxy value in configuration file.
  2046. The command-line option <strong>--https-proxy</strong> overrides this value.
  2047. </p>
  2048. </dd>
  2049. <dt class="hdlist1">
  2050. ftp_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2051. </dt>
  2052. <dd>
  2053. <p>
  2054. Specify proxy server for use in FTP.
  2055. Overrides ftp-proxy value in configuration file.
  2056. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  2057. </p>
  2058. </dd>
  2059. <dt class="hdlist1">
  2060. all_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2061. </dt>
  2062. <dd>
  2063. <p>
  2064. Specify proxy server for use if no protocol-specific proxy is specified.
  2065. Overrides all-proxy value in configuration file.
  2066. The command-line option <strong>--all-proxy</strong> overrides this value.
  2067. </p>
  2068. </dd>
  2069. <dt class="hdlist1">
  2070. no_proxy [DOMAIN,&#8230;]
  2071. </dt>
  2072. <dd>
  2073. <p>
  2074. Specify comma-separated hostname or domains to which proxy should not be used.
  2075. Overrides no-proxy value in configuration file.
  2076. The command-line option <strong>--no-proxy</strong> overrides this value.
  2077. </p>
  2078. </dd>
  2079. </dl></div>
  2080. </div>
  2081. <h2 id="_files">FILES</h2>
  2082. <div class="sectionbody">
  2083. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  2084. <div class="paragraph"><p>By default, aria2 parses <em>$HOME/.aria2/aria2.conf</em> as a configuraiton
  2085. file. You can specify the path to configuration file using
  2086. <strong>--conf-path</strong> option. If you don&#8217;t want to use the configuraitonf
  2087. file, use <strong>--no-conf</strong> option.</p></div>
  2088. <div class="paragraph"><p>The configuration file is a text file and has 1 option per each
  2089. line. In each line, you can specify name-value pair in the format:
  2090. NAME=VALUE, where name is the long command-line option name without
  2091. "--" prefix. You can use same syntax for the command-line option. The
  2092. lines beginning "#" are treated as comments.</p></div>
  2093. <div class="listingblock">
  2094. <div class="content">
  2095. <pre><tt># sample configuration file for aria2c
  2096. listen-port=60000
  2097. dht-listen-port=60000
  2098. seed-ratio=1.0
  2099. max-upload-limit=50K
  2100. ftp-pasv=true</tt></pre>
  2101. </div></div>
  2102. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  2103. <div class="paragraph"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  2104. <h3 id="_control_file">Control File</h3><div style="clear:left"></div>
  2105. <div class="paragraph"><p>aria2 uses a control file to track the progress of a download. A
  2106. control file is placed in the same directory as the downloading file
  2107. and its filename is the filename of downloading file with ".aria2"
  2108. appended. For example, if you are downloading file.zip, then the
  2109. control file should be file.zip.aria2. (There is a exception for this
  2110. naming convention. If you are downloading a multi torrent, its
  2111. control file is the "top directory" name of the torrent with ".aria2"
  2112. appended. The "top directory" name is a value of "name" key in "info"
  2113. directory in a torrent file.)</p></div>
  2114. <div class="paragraph"><p>Usually a control file is deleted once download completed. If aria2
  2115. decides that download cannot be resumed(for example, when downloading
  2116. a file from a HTTP server which doesn&#8217;t support resume), a control
  2117. file is not created.</p></div>
  2118. <div class="paragraph"><p>Normally if you lose a control file, you cannot resume download. But
  2119. if you have a torrent or metalink with chunk checksums for the file,
  2120. you can resume the download without a control file by giving -V option
  2121. to aria2c in command-line.</p></div>
  2122. <h3 id="_input_file">Input File</h3><div style="clear:left"></div>
  2123. <div class="paragraph"><p>The input file can contain a list of URIs for aria2 to download. You
  2124. can specify multiple URIs for a single entity: separate URIs on a
  2125. single line using the TAB character.</p></div>
  2126. <div class="paragraph"><p>Each line is treated as if it is provided in command-line argument.
  2127. Therefore they are affected by <strong>-Z</strong> and <strong>-P</strong> options.</p></div>
  2128. <div class="paragraph"><p>Additionally, the following options can be specified after each line
  2129. of URIs. These optional lines must start with white space(s).</p></div>
  2130. <div class="ulist"><ul>
  2131. <li>
  2132. <p>
  2133. dir
  2134. </p>
  2135. </li>
  2136. <li>
  2137. <p>
  2138. check-integrity
  2139. </p>
  2140. </li>
  2141. <li>
  2142. <p>
  2143. continue
  2144. </p>
  2145. </li>
  2146. <li>
  2147. <p>
  2148. all-proxy
  2149. </p>
  2150. </li>
  2151. <li>
  2152. <p>
  2153. connect-timeout
  2154. </p>
  2155. </li>
  2156. <li>
  2157. <p>
  2158. dry-run
  2159. </p>
  2160. </li>
  2161. <li>
  2162. <p>
  2163. lowest-speed-limit
  2164. </p>
  2165. </li>
  2166. <li>
  2167. <p>
  2168. max-file-not-found
  2169. </p>
  2170. </li>
  2171. <li>
  2172. <p>
  2173. max-tries
  2174. </p>
  2175. </li>
  2176. <li>
  2177. <p>
  2178. no-proxy
  2179. </p>
  2180. </li>
  2181. <li>
  2182. <p>
  2183. out
  2184. </p>
  2185. </li>
  2186. <li>
  2187. <p>
  2188. proxy-method
  2189. </p>
  2190. </li>
  2191. <li>
  2192. <p>
  2193. remote-time
  2194. </p>
  2195. </li>
  2196. <li>
  2197. <p>
  2198. split
  2199. </p>
  2200. </li>
  2201. <li>
  2202. <p>
  2203. timeout
  2204. </p>
  2205. </li>
  2206. <li>
  2207. <p>
  2208. http-auth-challenge
  2209. </p>
  2210. </li>
  2211. <li>
  2212. <p>
  2213. http-user
  2214. </p>
  2215. </li>
  2216. <li>
  2217. <p>
  2218. http-passwd
  2219. </p>
  2220. </li>
  2221. <li>
  2222. <p>
  2223. http-proxy
  2224. </p>
  2225. </li>
  2226. <li>
  2227. <p>
  2228. https-proxy
  2229. </p>
  2230. </li>
  2231. <li>
  2232. <p>
  2233. referer
  2234. </p>
  2235. </li>
  2236. <li>
  2237. <p>
  2238. enable-http-keep-alive
  2239. </p>
  2240. </li>
  2241. <li>
  2242. <p>
  2243. enable-http-pipelining
  2244. </p>
  2245. </li>
  2246. <li>
  2247. <p>
  2248. header
  2249. </p>
  2250. </li>
  2251. <li>
  2252. <p>
  2253. use-head
  2254. </p>
  2255. </li>
  2256. <li>
  2257. <p>
  2258. user-agent
  2259. </p>
  2260. </li>
  2261. <li>
  2262. <p>
  2263. ftp-user
  2264. </p>
  2265. </li>
  2266. <li>
  2267. <p>
  2268. ftp-passwd
  2269. </p>
  2270. </li>
  2271. <li>
  2272. <p>
  2273. ftp-pasv
  2274. </p>
  2275. </li>
  2276. <li>
  2277. <p>
  2278. ftp-proxy
  2279. </p>
  2280. </li>
  2281. <li>
  2282. <p>
  2283. ftp-type
  2284. </p>
  2285. </li>
  2286. <li>
  2287. <p>
  2288. ftp-reuse-connection
  2289. </p>
  2290. </li>
  2291. <li>
  2292. <p>
  2293. no-netrc
  2294. </p>
  2295. </li>
  2296. <li>
  2297. <p>
  2298. select-file
  2299. </p>
  2300. </li>
  2301. <li>
  2302. <p>
  2303. bt-external-ip
  2304. </p>
  2305. </li>
  2306. <li>
  2307. <p>
  2308. bt-hash-check-seed
  2309. </p>
  2310. </li>
  2311. <li>
  2312. <p>
  2313. bt-max-open-files
  2314. </p>
  2315. </li>
  2316. <li>
  2317. <p>
  2318. bt-max-peers
  2319. </p>
  2320. </li>
  2321. <li>
  2322. <p>
  2323. bt-min-crypto-level
  2324. </p>
  2325. </li>
  2326. <li>
  2327. <p>
  2328. bt-prioritize-piece
  2329. </p>
  2330. </li>
  2331. <li>
  2332. <p>
  2333. bt-require-crypto
  2334. </p>
  2335. </li>
  2336. <li>
  2337. <p>
  2338. bt-request-peer-speed-limit
  2339. </p>
  2340. </li>
  2341. <li>
  2342. <p>
  2343. bt-seed-unverified
  2344. </p>
  2345. </li>
  2346. <li>
  2347. <p>
  2348. bt-stop-timeout
  2349. </p>
  2350. </li>
  2351. <li>
  2352. <p>
  2353. bt-tracker-interval
  2354. </p>
  2355. </li>
  2356. <li>
  2357. <p>
  2358. enable-peer-exchange
  2359. </p>
  2360. </li>
  2361. <li>
  2362. <p>
  2363. follow-torrent
  2364. </p>
  2365. </li>
  2366. <li>
  2367. <p>
  2368. index-out
  2369. </p>
  2370. </li>
  2371. <li>
  2372. <p>
  2373. max-upload-limit
  2374. </p>
  2375. </li>
  2376. <li>
  2377. <p>
  2378. seed-ratio
  2379. </p>
  2380. </li>
  2381. <li>
  2382. <p>
  2383. seed-time
  2384. </p>
  2385. </li>
  2386. <li>
  2387. <p>
  2388. follow-metalink
  2389. </p>
  2390. </li>
  2391. <li>
  2392. <p>
  2393. metalink-servers
  2394. </p>
  2395. </li>
  2396. <li>
  2397. <p>
  2398. metalink-language
  2399. </p>
  2400. </li>
  2401. <li>
  2402. <p>
  2403. metalink-location
  2404. </p>
  2405. </li>
  2406. <li>
  2407. <p>
  2408. metalink-os
  2409. </p>
  2410. </li>
  2411. <li>
  2412. <p>
  2413. metalink-version
  2414. </p>
  2415. </li>
  2416. <li>
  2417. <p>
  2418. metalink-preferred-protocol
  2419. </p>
  2420. </li>
  2421. <li>
  2422. <p>
  2423. metalink-enable-unique-protocol
  2424. </p>
  2425. </li>
  2426. <li>
  2427. <p>
  2428. allow-overwrite
  2429. </p>
  2430. </li>
  2431. <li>
  2432. <p>
  2433. allow-piece-length-change
  2434. </p>
  2435. </li>
  2436. <li>
  2437. <p>
  2438. async-dns
  2439. </p>
  2440. </li>
  2441. <li>
  2442. <p>
  2443. auto-file-renaming
  2444. </p>
  2445. </li>
  2446. <li>
  2447. <p>
  2448. file-allocation
  2449. </p>
  2450. </li>
  2451. <li>
  2452. <p>
  2453. max-download-limit
  2454. </p>
  2455. </li>
  2456. <li>
  2457. <p>
  2458. no-file-allocation-limit
  2459. </p>
  2460. </li>
  2461. <li>
  2462. <p>
  2463. parameterized-uri
  2464. </p>
  2465. </li>
  2466. <li>
  2467. <p>
  2468. realtime-chunk-checksum
  2469. </p>
  2470. </li>
  2471. </ul></div>
  2472. <div class="paragraph"><p>These options have exactly same meaning of the ones in the
  2473. command-line options, but it just applies to the URIs it belongs to.</p></div>
  2474. <div class="paragraph"><p>For example, the content of uri.txt is</p></div>
  2475. <div class="listingblock">
  2476. <div class="content">
  2477. <pre><tt>http://server/file.iso http://mirror/file.iso
  2478. dir=/iso_images
  2479. out=file.img
  2480. http://foo/bar</tt></pre>
  2481. </div></div>
  2482. <div class="paragraph"><p>If aria2 is executed with <strong>-i</strong> uri.txt <strong>-d</strong> /tmp options, then
  2483. <em>file.iso</em> is saved as <em>/iso_images/file.img</em> and it is downloaded
  2484. from http://server/file.iso and http://mirror/file.iso. The file
  2485. <em>bar</em> is downloaded from http://foo/bar and saved as <em>/tmp/bar</em>.</p></div>
  2486. <div class="paragraph"><p>In some cases, <strong>out</strong> parameter has no effect. See note of <strong>--out</strong>
  2487. option for the restrictions.</p></div>
  2488. <h3 id="_server_performance_profile">Server Performance Profile</h3><div style="clear:left"></div>
  2489. <div class="paragraph"><p>This section describes the format of server performance profile. The
  2490. file is plain text and each line has several NAME=VALUE pair,
  2491. delimited by comma. Currently following NAMEs are recognized:</p></div>
  2492. <div class="dlist"><dl>
  2493. <dt class="hdlist1">
  2494. host
  2495. </dt>
  2496. <dd>
  2497. <p>
  2498. Hostname of the server. Required.
  2499. </p>
  2500. </dd>
  2501. <dt class="hdlist1">
  2502. protocol
  2503. </dt>
  2504. <dd>
  2505. <p>
  2506. Protocol for this profile, such as ftp, http. Required.
  2507. </p>
  2508. </dd>
  2509. <dt class="hdlist1">
  2510. dl_speed
  2511. </dt>
  2512. <dd>
  2513. <p>
  2514. The average download speed observed in the previous download in
  2515. bytes per sec. Required.
  2516. </p>
  2517. </dd>
  2518. <dt class="hdlist1">
  2519. sc_avg_speed
  2520. </dt>
  2521. <dd>
  2522. <p>
  2523. The average download speed observed in the previous download in
  2524. bytes per sec. This value is only updated if the download is done in
  2525. single connection environment and only used by
  2526. AdaptiveURISelector. Optional.
  2527. </p>
  2528. </dd>
  2529. <dt class="hdlist1">
  2530. mc_avg_speed
  2531. </dt>
  2532. <dd>
  2533. <p>
  2534. The average download speed observed in the previous download in
  2535. bytes per sec. This value is only updated if the download is done in
  2536. multi connection environment and only used by
  2537. AdaptiveURISelector. Optional.
  2538. </p>
  2539. </dd>
  2540. <dt class="hdlist1">
  2541. counter
  2542. </dt>
  2543. <dd>
  2544. <p>
  2545. How many times the server is used. Currently this value is only used
  2546. by AdaptiveURISelector. Optional.
  2547. </p>
  2548. </dd>
  2549. <dt class="hdlist1">
  2550. last_updated
  2551. </dt>
  2552. <dd>
  2553. <p>
  2554. Last contact time in GMT with this server, specified in the seconds
  2555. from the Epoch. Required.
  2556. </p>
  2557. </dd>
  2558. <dt class="hdlist1">
  2559. status
  2560. </dt>
  2561. <dd>
  2562. <p>
  2563. ERROR is set when server cannot be reached or out-of-service or
  2564. timeout occurred. Otherwise, OK is set.
  2565. </p>
  2566. </dd>
  2567. </dl></div>
  2568. <div class="paragraph"><p>Those fields must exist in one line. The order of the fields is not
  2569. significant. You can put pairs other than the above; they are simply
  2570. ignored.</p></div>
  2571. <div class="paragraph"><p>An example follows:</p></div>
  2572. <div class="listingblock">
  2573. <div class="content">
  2574. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  2575. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  2576. </div></div>
  2577. </div>
  2578. <h2 id="_xml_rpc_interface">XML-RPC INTERFACE</h2>
  2579. <div class="sectionbody">
  2580. <h3 id="_terminology">Terminology</h3><div style="clear:left"></div>
  2581. <div class="dlist"><dl>
  2582. <dt class="hdlist1">
  2583. GID
  2584. </dt>
  2585. <dd>
  2586. <p>
  2587. GID(or gid) is the key to manage each download. Each download has an
  2588. unique GID. Currently GID looks like an integer, but don&#8217;t treat it
  2589. as integer because it may be changed to another type in the future
  2590. release.
  2591. </p>
  2592. </dd>
  2593. </dl></div>
  2594. <h3 id="_methods">Methods</h3><div style="clear:left"></div>
  2595. <div class="paragraph"><p><strong>aria2.addUri</strong> <em>uris[, options[, position]]</em></p></div>
  2596. <div class="paragraph"><p>This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. <em>uris</em> is of
  2597. type array and its element is URI which is of type string. For
  2598. BitTorrent Magnet URI, <em>uris</em> must have only one element and it should
  2599. be BitTorrent Magnet URI. <em>options</em> is of type struct and its members
  2600. are a pair of option name and value. See <strong>Options</strong> below for more
  2601. details. If <em>position</em> is given as an integer starting from 0, the
  2602. new download is inserted at <em>position</em> in the waiting queue. If
  2603. <em>position</em> is not given or <em>position</em> is larger than the size of the
  2604. queue, it is appended at the end of the queue. This method returns
  2605. GID of registered download.</p></div>
  2606. <div class="paragraph"><p><strong>aria2.addTorrent</strong> <em>torrent[, uris[, options[, position]]]</em></p></div>
  2607. <div class="paragraph"><p>This method adds BitTorrent download by uploading .torrent file. If
  2608. you want to add BitTorrent Magnet URI, use <strong>aria2.addUri</strong> method
  2609. instead. <em>torrent</em> is of type base64 which contains Base64-encoded
  2610. .torrent file. <em>uris</em> is of type array and its element is URI which
  2611. is of type string. <em>uris</em> is used for Web-seeding. For single file
  2612. torrents, URI can be a complete URI pointing to the resource or if URI
  2613. ends with /, name in torrent file is added. For multi-file torrents,
  2614. name and path in torrent are added to form a URI for each file.
  2615. <em>options</em> is of type struct and its members are a pair of option name
  2616. and value. See <strong>Options</strong> below for more details. If <em>position</em> is
  2617. given as an integer starting from 0, the new download is inserted at
  2618. <em>position</em> in the waiting queue. If <em>position</em> is not given or
  2619. <em>position</em> is larger than the size of the queue, it is appended at the
  2620. end of the queue. This method returns GID of registered download.</p></div>
  2621. <div class="paragraph"><p><strong>aria2.addMetalink</strong> <em>metalink[, options[, position]]</em></p></div>
  2622. <div class="paragraph"><p>This method adds Metalink download by uploading .metalink file.
  2623. <em>metalink</em> is of type base64 which contains Base64-encoded .metalink
  2624. file. <em>options</em> is of type struct and its members are a pair of
  2625. option name and value. See <strong>Options</strong> below for more details. If
  2626. <em>position</em> is given as an integer starting from 0, the new download is
  2627. inserted at <em>position</em> in the waiting queue. If <em>position</em> is not
  2628. given or <em>position</em> is larger than the size of the queue, it is
  2629. appended at the end of the queue. This method returns array of GID of
  2630. registered download.</p></div>
  2631. <div class="paragraph"><p><strong>aria2.remove</strong> <em>gid</em></p></div>
  2632. <div class="paragraph"><p>This method removes the download denoted by <em>gid</em>. <em>gid</em> is of type
  2633. string. If specified download is in progress, it is stopped at
  2634. first. The status of removed download becomes "removed". This method
  2635. returns GID of removed download.</p></div>
  2636. <div class="paragraph"><p><strong>aria2.tellStatus</strong> <em>gid</em></p></div>
  2637. <div class="paragraph"><p>This method returns download progress of the download denoted by
  2638. <em>gid</em>. <em>gid</em> is of type string. The response is of type struct and it
  2639. contains following keys. The value type is string.</p></div>
  2640. <div class="dlist"><dl>
  2641. <dt class="hdlist1">
  2642. gid
  2643. </dt>
  2644. <dd>
  2645. <p>
  2646. GID of this download.
  2647. </p>
  2648. </dd>
  2649. <dt class="hdlist1">
  2650. status
  2651. </dt>
  2652. <dd>
  2653. <p>
  2654. "active" for currently downloading/seeding entry. "waiting" for the
  2655. entry in the queue; download is not started. "error" for the stopped
  2656. download because of error. "complete" for the stopped and completed
  2657. download. "removed" for the download removed by user.
  2658. </p>
  2659. </dd>
  2660. <dt class="hdlist1">
  2661. totalLength
  2662. </dt>
  2663. <dd>
  2664. <p>
  2665. Total length of this download in bytes.
  2666. </p>
  2667. </dd>
  2668. <dt class="hdlist1">
  2669. completedLength
  2670. </dt>
  2671. <dd>
  2672. <p>
  2673. Completed length of this download in bytes.
  2674. </p>
  2675. </dd>
  2676. <dt class="hdlist1">
  2677. uploadLength
  2678. </dt>
  2679. <dd>
  2680. <p>
  2681. Uploaded length of this download in bytes.
  2682. </p>
  2683. </dd>
  2684. <dt class="hdlist1">
  2685. bitfield
  2686. </dt>
  2687. <dd>
  2688. <p>
  2689. Hexadecimal representation of the download progress. The highest bit
  2690. corresponds to piece index 0. The set bits indicate the piece is
  2691. available and unset bits indicate the piece is missing. The spare
  2692. bits at the end are set to zero.
  2693. </p>
  2694. </dd>
  2695. <dt class="hdlist1">
  2696. downloadSpeed
  2697. </dt>
  2698. <dd>
  2699. <p>
  2700. Download speed of this download measured in bytes/sec.
  2701. </p>
  2702. </dd>
  2703. <dt class="hdlist1">
  2704. uploadSpeed
  2705. </dt>
  2706. <dd>
  2707. <p>
  2708. Upload speed of this download measured in bytes/sec.
  2709. </p>
  2710. </dd>
  2711. <dt class="hdlist1">
  2712. infoHash
  2713. </dt>
  2714. <dd>
  2715. <p>
  2716. InfoHash. BitTorrent only.
  2717. </p>
  2718. </dd>
  2719. <dt class="hdlist1">
  2720. numSeeders
  2721. </dt>
  2722. <dd>
  2723. <p>
  2724. The number of seeders the client has connected to. BitTorrent only.
  2725. </p>
  2726. </dd>
  2727. <dt class="hdlist1">
  2728. pieceLength
  2729. </dt>
  2730. <dd>
  2731. <p>
  2732. Piece length in bytes.
  2733. </p>
  2734. </dd>
  2735. <dt class="hdlist1">
  2736. numPieces
  2737. </dt>
  2738. <dd>
  2739. <p>
  2740. The number of pieces.
  2741. </p>
  2742. </dd>
  2743. <dt class="hdlist1">
  2744. connections
  2745. </dt>
  2746. <dd>
  2747. <p>
  2748. The number of peers/servers the client has connected to.
  2749. </p>
  2750. </dd>
  2751. <dt class="hdlist1">
  2752. errorCode
  2753. </dt>
  2754. <dd>
  2755. <p>
  2756. The last error code occurred in this download. The value is of type
  2757. string. The error codes are defined in EXIT STATUS section. This
  2758. value is only available for stopped/completed downloads.
  2759. </p>
  2760. </dd>
  2761. <dt class="hdlist1">
  2762. followedBy
  2763. </dt>
  2764. <dd>
  2765. <p>
  2766. List of GIDs which are generated by the consequence of this
  2767. download. For example, when aria2 downloaded Metalink file, it
  2768. generates downloads described in it(see <strong>--follow-metalink</strong>
  2769. option). This value is useful to track these auto generated
  2770. downloads. If there is no such downloads, this key will not
  2771. be included in the response.
  2772. </p>
  2773. </dd>
  2774. <dt class="hdlist1">
  2775. belongsTo
  2776. </dt>
  2777. <dd>
  2778. <p>
  2779. GID of a parent download. Some downloads are a part of another
  2780. download. For example, if a file in Metalink has BitTorrent
  2781. resource, the download of .torrent is a part of that file. If this
  2782. download has no parent, this key will not be included in the
  2783. response.
  2784. </p>
  2785. </dd>
  2786. </dl></div>
  2787. <div class="paragraph"><p><strong>aria2.getUris</strong> <em>gid</em></p></div>
  2788. <div class="paragraph"><p>This method returns URIs used in the download denoted by <em>gid</em>. <em>gid</em>
  2789. is of type string. The response is of type array and its element is of
  2790. type struct and it contains following keys. The value type is string.</p></div>
  2791. <div class="dlist"><dl>
  2792. <dt class="hdlist1">
  2793. uri
  2794. </dt>
  2795. <dd>
  2796. <p>
  2797. URI
  2798. </p>
  2799. </dd>
  2800. </dl></div>
  2801. <div class="paragraph"><p><strong>aria2.getFiles</strong> <em>gid</em></p></div>
  2802. <div class="paragraph"><p>This method returns file list of the download denoted by <em>gid</em>. <em>gid</em>
  2803. is of type string. The response is of type array and its element is of
  2804. type struct and it contains following keys. The value type is string.</p></div>
  2805. <div class="dlist"><dl>
  2806. <dt class="hdlist1">
  2807. index
  2808. </dt>
  2809. <dd>
  2810. <p>
  2811. Index of file. Starting with 1. This is the same order with the
  2812. files in multi-file torrent.
  2813. </p>
  2814. </dd>
  2815. <dt class="hdlist1">
  2816. path
  2817. </dt>
  2818. <dd>
  2819. <p>
  2820. File path.
  2821. </p>
  2822. </dd>
  2823. <dt class="hdlist1">
  2824. length
  2825. </dt>
  2826. <dd>
  2827. <p>
  2828. File size in bytes.
  2829. </p>
  2830. </dd>
  2831. <dt class="hdlist1">
  2832. selected
  2833. </dt>
  2834. <dd>
  2835. <p>
  2836. "true" if this file is selected by <strong>--select-file</strong> option. If
  2837. <strong>--select-file</strong> is not specified or this is single torrent or no
  2838. torrent download, this value is always "true". Otherwise "false".
  2839. </p>
  2840. </dd>
  2841. </dl></div>
  2842. <div class="paragraph"><p><strong>aria2.getPeers</strong> <em>gid</em></p></div>
  2843. <div class="paragraph"><p>This method returns peer list of the download denoted by <em>gid</em>. <em>gid</em>
  2844. is of type string. This method is for BitTorrent only. The response
  2845. is of type array and its element is of type struct and it contains
  2846. following keys. The value type is string.</p></div>
  2847. <div class="dlist"><dl>
  2848. <dt class="hdlist1">
  2849. peerId
  2850. </dt>
  2851. <dd>
  2852. <p>
  2853. Percent-encoded peer ID.
  2854. </p>
  2855. </dd>
  2856. <dt class="hdlist1">
  2857. ip
  2858. </dt>
  2859. <dd>
  2860. <p>
  2861. IP address of the peer.
  2862. </p>
  2863. </dd>
  2864. <dt class="hdlist1">
  2865. port
  2866. </dt>
  2867. <dd>
  2868. <p>
  2869. Port number of the peer.
  2870. </p>
  2871. </dd>
  2872. <dt class="hdlist1">
  2873. bitfield
  2874. </dt>
  2875. <dd>
  2876. <p>
  2877. Hexadecimal representation of the download progress of the peer. The
  2878. highest bit corresponds to piece index 0. The set bits indicate the
  2879. piece is available and unset bits indicate the piece is missing. The
  2880. spare bits at the end are set to zero.
  2881. </p>
  2882. </dd>
  2883. <dt class="hdlist1">
  2884. amChoking
  2885. </dt>
  2886. <dd>
  2887. <p>
  2888. "true" if this client is choking the peer. Otherwise "false".
  2889. </p>
  2890. </dd>
  2891. <dt class="hdlist1">
  2892. peerChoking
  2893. </dt>
  2894. <dd>
  2895. <p>
  2896. "true" if the peer is choking this client. Otherwise "false".
  2897. </p>
  2898. </dd>
  2899. <dt class="hdlist1">
  2900. downloadSpeed
  2901. </dt>
  2902. <dd>
  2903. <p>
  2904. Download speed (byte/sec) that this client obtains from the peer.
  2905. </p>
  2906. </dd>
  2907. <dt class="hdlist1">
  2908. uploadSpeed
  2909. </dt>
  2910. <dd>
  2911. <p>
  2912. Upload speed(byte/sec) that this client uploads to the peer.
  2913. </p>
  2914. </dd>
  2915. <dt class="hdlist1">
  2916. seeder
  2917. </dt>
  2918. <dd>
  2919. <p>
  2920. "true" is this client is a seeder. Otherwise "false".
  2921. </p>
  2922. </dd>
  2923. </dl></div>
  2924. <div class="paragraph"><p><strong>aria2.tellActive</strong></p></div>
  2925. <div class="paragraph"><p>This method returns the list of active downloads. The respose is of
  2926. type array and its element is the same struct returned by
  2927. <strong>aria2.tellStatus</strong> method.</p></div>
  2928. <div class="paragraph"><p><strong>aria2.tellWaiting</strong> <em>offset, num</em></p></div>
  2929. <div class="paragraph"><p>This method returns the list of waiting download in the range of
  2930. [<em>offset</em>, <em>offset</em>+<em>num</em>). <em>offset</em> is of type integer and specifies
  2931. the offset from the download waiting at the front. <em>num</em> is of type
  2932. integer and specifies the number of downloads to be returned. For
  2933. example, imagine that three downloads "A","B" and "C" are waiting in
  2934. this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1,
  2935. 2) returns "B" and "C". The respose is of type array and its element
  2936. is the same struct returned by <strong>aria2.tellStatus</strong> method.</p></div>
  2937. <div class="paragraph"><p><strong>aria2.tellStopped</strong> <em>offset, num</em></p></div>
  2938. <div class="paragraph"><p>This method returns the list of stopped download in the range of
  2939. [<em>offset</em>, <em>offset</em>+<em>num</em>). <em>offset</em> is of type integer and specifies
  2940. the offset from the oldest download. <em>num</em> is of type integer and
  2941. specifies the number of downloads to be returned. The respose is of
  2942. type array and its element is the same struct returned by
  2943. <strong>aria2.tellStatus</strong> method.</p></div>
  2944. <div class="paragraph"><p><strong>aria2.changePosition</strong> <em>gid, pos, how</em></p></div>
  2945. <div class="paragraph"><p>This method changes the position of the download denoted by
  2946. <em>gid</em>. <em>pos</em> is of type integer. <em>how</em> is of type string. If <em>how</em> is
  2947. "POS_SET", it moves the download to a position relative to the
  2948. beginning of the queue. If <em>how</em> is "POS_CUR", it moves the download
  2949. to a position relative to the current position. If <em>how</em> is "POS_END",
  2950. it moves the download to a position relative to the end of the
  2951. queue. If the destination position is less than 0 or beyond the end of
  2952. the queue, it moves the download to the beginning or the end of the
  2953. queue respectively. The response is of type integer and it is the
  2954. destination position.</p></div>
  2955. <div class="paragraph"><p>For example, if GID#1 is placed in position 3, aria2.changePosition(1,
  2956. -1, POS_CUR) will change its position to 2. Additional
  2957. aria2.changePosition(1, 0, POS_SET) will change its position to 0(the
  2958. beginning of the queue).</p></div>
  2959. <div class="paragraph"><p><strong>aria2.getOption</strong> <em>gid</em></p></div>
  2960. <div class="paragraph"><p>This method returns options of the download denoted by <em>gid</em>. The
  2961. response is of type struct. Its key is the name of option. The value type
  2962. is string.</p></div>
  2963. <div class="paragraph"><p><strong>aria2.changeOption</strong> <em>gid, options</em></p></div>
  2964. <div class="paragraph"><p>This method changes options of the download denoted by <em>gid</em>
  2965. dynamically. <em>gid</em> is of type string. <em>options</em> is of type struct
  2966. and the available options are: <strong>bt-max-peers</strong>,
  2967. <strong>bt-request-peer-speed-limit</strong>, <strong>max-download-limit</strong> and
  2968. <strong>max-upload-limit</strong>. This method returns "OK" for success.</p></div>
  2969. <div class="paragraph"><p><strong>aria2.getGlobalOption</strong></p></div>
  2970. <div class="paragraph"><p>This method returns global options. The response is of type
  2971. struct. Its key is the name of option. The value type is string.
  2972. Because global options are used as a template for the options of newly
  2973. added download, the response contains keys returned by
  2974. <strong>aria2.getOption</strong> method.</p></div>
  2975. <div class="paragraph"><p><strong>aria2.changeGlobalOption</strong> <em>options</em></p></div>
  2976. <div class="paragraph"><p>This method changes global options dynamically. <em>options</em> is of type
  2977. struct and the available options are <strong>max-concurrent-downloads</strong>,
  2978. <strong>max-overall-download-limit</strong> and <strong>max-overall-upload-limit</strong>. This
  2979. method returns "OK" for success.</p></div>
  2980. <div class="paragraph"><p><strong>aria2.purgeDownloadResult</strong></p></div>
  2981. <div class="paragraph"><p>This method purges completed/error/removed downloads to free memory.
  2982. This method returns "OK".</p></div>
  2983. <div class="paragraph"><p><strong>aria2.getVersion</strong></p></div>
  2984. <div class="paragraph"><p>This method returns version of the program and the list of enabled
  2985. features. The response is of type struct and contains following keys.</p></div>
  2986. <div class="dlist"><dl>
  2987. <dt class="hdlist1">
  2988. version
  2989. </dt>
  2990. <dd>
  2991. <p>
  2992. Version number of the program in string.
  2993. </p>
  2994. </dd>
  2995. <dt class="hdlist1">
  2996. enabledFeatures
  2997. </dt>
  2998. <dd>
  2999. <p>
  3000. List of enabled features. Each feature name is of type string.
  3001. </p>
  3002. </dd>
  3003. </dl></div>
  3004. <div class="paragraph"><p><strong>system.multicall</strong> <em>methods</em></p></div>
  3005. <div class="paragraph"><p>This methods encapsulates multiple method calls in a single request.
  3006. <em>methods</em> is of type array and its element is struct. The struct
  3007. contains two keys: "methodName" and "params". "methodName" is the
  3008. method name to call and "params" is array containing parameters to the
  3009. method. This method returns array of responses. The element of array
  3010. will either be a one-item array containing the return value of each
  3011. method call or struct of fault element if an encapsulated method call
  3012. fails.</p></div>
  3013. <h3 id="_error_handling">Error Handling</h3><div style="clear:left"></div>
  3014. <div class="paragraph"><p>In case of error, aria2 returns faultCode=1 and the error message in
  3015. faultString.</p></div>
  3016. <h3 id="_options_2">Options</h3><div style="clear:left"></div>
  3017. <div class="paragraph"><p>Same options for <strong>-i</strong> list are available. See <strong>Input File</strong> subsection
  3018. for complete list of options.</p></div>
  3019. <div class="paragraph"><p>In the option struct, name element is option name(without preceeding
  3020. "--") and value element is argument as string.</p></div>
  3021. <div class="listingblock">
  3022. <div class="content">
  3023. <pre><tt>&lt;struct&gt;
  3024. &lt;member&gt;
  3025. &lt;name&gt;split&lt;/name&gt;
  3026. &lt;value&gt;&lt;string&gt;1&lt;/string&gt;&lt;/value&gt;
  3027. &lt;/member&gt;
  3028. &lt;member&gt;
  3029. &lt;name&gt;http-proxy&lt;/name&gt;
  3030. &lt;value&gt;&lt;string&gt;http://proxy/&lt;/string&gt;&lt;/value&gt;
  3031. &lt;/member&gt;
  3032. &lt;/struct&gt;</tt></pre>
  3033. </div></div>
  3034. <div class="paragraph"><p><strong>header</strong> and <strong>index-out</strong> option are allowed multiple times in
  3035. command-line. Since name should be unique in struct(many XML-RPC
  3036. library implementation uses hash or dict for struct), single string is
  3037. not enough. To overcome this situation, they can take array as value
  3038. as well as string.</p></div>
  3039. <div class="listingblock">
  3040. <div class="content">
  3041. <pre><tt>&lt;struct&gt;
  3042. &lt;member&gt;
  3043. &lt;name&gt;header&lt;/name&gt;
  3044. &lt;value&gt;
  3045. &lt;array&gt;
  3046. &lt;data&gt;
  3047. &lt;value&gt;&lt;string&gt;Accept-Language: ja&lt;/string&gt;&lt;/value&gt;
  3048. &lt;value&gt;&lt;string&gt;Accept-Charset: utf-8&lt;/string&gt;&lt;/value&gt;
  3049. &lt;/data&gt;
  3050. &lt;/array&gt;
  3051. &lt;/value&gt;
  3052. &lt;/member&gt;
  3053. &lt;/struct&gt;</tt></pre>
  3054. </div></div>
  3055. <h3 id="_sample_xml_rpc_client_code">Sample XML-RPC Client Code</h3><div style="clear:left"></div>
  3056. <div class="paragraph"><p>The following Ruby script adds <em>http://localhost/aria2.tar.bz2</em> to
  3057. aria2c operated on localhost with option <strong>--dir</strong>=<em>/downloads</em> and
  3058. prints its reponse.</p></div>
  3059. <div class="listingblock">
  3060. <div class="content">
  3061. <pre><tt>#!/usr/bin/env ruby
  3062. require 'xmlrpc/client'
  3063. require 'pp'
  3064. client=XMLRPC::Client.new2("http://localhost:6800/rpc")
  3065. options={ "dir" =&gt; "/downloads" }
  3066. result=client.call("aria2.addUri", [ "http://localhost/aria2.tar.bz2" ], options)
  3067. pp result</tt></pre>
  3068. </div></div>
  3069. </div>
  3070. <h2 id="_example">EXAMPLE</h2>
  3071. <div class="sectionbody">
  3072. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  3073. <h4 id="_download_a_file">Download a file</h4>
  3074. <div class="listingblock">
  3075. <div class="content">
  3076. <pre><tt>aria2c "http://host/file.zip"</tt></pre>
  3077. </div></div>
  3078. <div class="admonitionblock">
  3079. <table><tr>
  3080. <td class="icon">
  3081. <div class="title">Note</div>
  3082. </td>
  3083. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  3084. </tr></table>
  3085. </div>
  3086. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  3087. <div class="listingblock">
  3088. <div class="content">
  3089. <pre><tt>aria2c -s1 "http://host/file.zip"</tt></pre>
  3090. </div></div>
  3091. <div class="admonitionblock">
  3092. <table><tr>
  3093. <td class="icon">
  3094. <div class="title">Note</div>
  3095. </td>
  3096. <td class="content">aria2 uses 5 connections to download 1 file by default.
  3097. -s1 limits the number of connections to just 1.</td>
  3098. </tr></table>
  3099. </div>
  3100. <div class="admonitionblock">
  3101. <table><tr>
  3102. <td class="icon">
  3103. <div class="title">Note</div>
  3104. </td>
  3105. <td class="content">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.</td>
  3106. </tr></table>
  3107. </div>
  3108. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  3109. <div class="listingblock">
  3110. <div class="content">
  3111. <pre><tt>aria2c "http://host/file.zip" "http://mirror/file.zip"</tt></pre>
  3112. </div></div>
  3113. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  3114. <div class="listingblock">
  3115. <div class="content">
  3116. <pre><tt>aria2c "http://host1/file.zip" "ftp://host2/file.zip"</tt></pre>
  3117. </div></div>
  3118. <h4 id="_download_files_listed_in_a_text_file_concurrently">Download files listed in a text file concurrently</h4>
  3119. <div class="listingblock">
  3120. <div class="content">
  3121. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  3122. </div></div>
  3123. <div class="admonitionblock">
  3124. <table><tr>
  3125. <td class="icon">
  3126. <div class="title">Note</div>
  3127. </td>
  3128. <td class="content">-j option specifies the number of parallel downloads.</td>
  3129. </tr></table>
  3130. </div>
  3131. <h4 id="_using_proxy">Using proxy</h4>
  3132. <div class="paragraph"><p>For HTTP:</p></div>
  3133. <div class="listingblock">
  3134. <div class="content">
  3135. <pre><tt>aria2c --http-proxy="http://proxy:8080" "http://host/file"</tt></pre>
  3136. </div></div>
  3137. <div class="paragraph"><p>For FTP:</p></div>
  3138. <div class="listingblock">
  3139. <div class="content">
  3140. <pre><tt>aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"</tt></pre>
  3141. </div></div>
  3142. <div class="admonitionblock">
  3143. <table><tr>
  3144. <td class="icon">
  3145. <div class="title">Note</div>
  3146. </td>
  3147. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong> and <strong>--all-proxy</strong> for
  3148. details.
  3149. You can specify proxy in the environment variables. See <strong>ENVIRONMENT</strong> section.</td>
  3150. </tr></table>
  3151. </div>
  3152. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  3153. <div class="listingblock">
  3154. <div class="content">
  3155. <pre><tt>aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"</tt></pre>
  3156. </div></div>
  3157. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  3158. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  3159. <div class="listingblock">
  3160. <div class="content">
  3161. <pre><tt>aria2c --follow-metalink=mem "http://host/file.metalink"</tt></pre>
  3162. </div></div>
  3163. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  3164. <div class="listingblock">
  3165. <div class="content">
  3166. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</tt></pre>
  3167. </div></div>
  3168. <div class="admonitionblock">
  3169. <table><tr>
  3170. <td class="icon">
  3171. <div class="title">Note</div>
  3172. </td>
  3173. <td class="content">To pause a download, press Ctrl-C.
  3174. You can resume the transfer by running aria2c with the same argument in the same
  3175. directory.</td>
  3176. </tr></table>
  3177. </div>
  3178. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  3179. <div class="listingblock">
  3180. <div class="content">
  3181. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  3182. </div></div>
  3183. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  3184. <div class="listingblock">
  3185. <div class="content">
  3186. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  3187. </div></div>
  3188. <div class="admonitionblock">
  3189. <table><tr>
  3190. <td class="icon">
  3191. <div class="title">Note</div>
  3192. </td>
  3193. <td class="content">The index is printed to the console using -S option.</td>
  3194. </tr></table>
  3195. </div>
  3196. <h4 id="_download_a_file_using_a_local_metalink_file_with_user_preference">Download a file using a local .metalink file with user preference</h4>
  3197. <div class="listingblock">
  3198. <div class="content">
  3199. <pre><tt>aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  3200. </div></div>
  3201. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  3202. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  3203. <div class="listingblock">
  3204. <div class="content">
  3205. <pre><tt>aria2c --follow-torrent=mem "http://host/file.torrent"</tt></pre>
  3206. </div></div>
  3207. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  3208. <div class="listingblock">
  3209. <div class="content">
  3210. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  3211. </div></div>
  3212. <div class="admonitionblock">
  3213. <table><tr>
  3214. <td class="icon">
  3215. <div class="title">Note</div>
  3216. </td>
  3217. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  3218. </tr></table>
  3219. </div>
  3220. <div class="admonitionblock">
  3221. <table><tr>
  3222. <td class="icon">
  3223. <div class="title">Note</div>
  3224. </td>
  3225. <td class="content">To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.</td>
  3226. </tr></table>
  3227. </div>
  3228. <h4 id="_download_using_bittorrent_magnet_uri">Download using BitTorrent Magnet URI</h4>
  3229. <div class="listingblock">
  3230. <div class="content">
  3231. <pre><tt>aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&amp;dn=aria2"</tt></pre>
  3232. </div></div>
  3233. <div class="admonitionblock">
  3234. <table><tr>
  3235. <td class="icon">
  3236. <div class="title">Note</div>
  3237. </td>
  3238. <td class="content">Don&#8217;t forget to quote BitTorrent Magnet URI which includes "&amp;"
  3239. character with single(') or double(") quotation.</td>
  3240. </tr></table>
  3241. </div>
  3242. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  3243. <div class="listingblock">
  3244. <div class="content">
  3245. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  3246. </div></div>
  3247. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  3248. <div class="listingblock">
  3249. <div class="content">
  3250. <pre><tt>aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"</tt></pre>
  3251. </div></div>
  3252. <div class="admonitionblock">
  3253. <table><tr>
  3254. <td class="icon">
  3255. <div class="title">Note</div>
  3256. </td>
  3257. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  3258. </tr></table>
  3259. </div>
  3260. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  3261. <div class="listingblock">
  3262. <div class="content">
  3263. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  3264. </div></div>
  3265. <div class="admonitionblock">
  3266. <table><tr>
  3267. <td class="icon">
  3268. <div class="title">Note</div>
  3269. </td>
  3270. <td class="content">The index is printed to the console using -S option.</td>
  3271. </tr></table>
  3272. </div>
  3273. <h4 id="_specify_output_filename">Specify output filename</h4>
  3274. <div class="paragraph"><p>To specify output filename for BitTorrent downloads, you need to know
  3275. the index of file in torrent file using <strong>-S</strong> option. For example, the
  3276. output looks like this:</p></div>
  3277. <div class="listingblock">
  3278. <div class="content">
  3279. <pre><tt>idx|path/length
  3280. ===+======================
  3281. 1|dist/base-2.6.18.iso
  3282. |99.9MiB
  3283. ---+----------------------
  3284. 2|dist/driver-2.6.18.iso
  3285. |169.0MiB
  3286. ---+----------------------</tt></pre>
  3287. </div></div>
  3288. <div class="paragraph"><p>To save <em>dist/base-2.6.18.iso</em> in <em>/tmp/mydir/base.iso</em> and
  3289. <em>dist/driver-2.6.18.iso</em> in <em>/tmp/dir/driver.iso</em>, use the following
  3290. command:</p></div>
  3291. <div class="listingblock">
  3292. <div class="content">
  3293. <pre><tt>aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent</tt></pre>
  3294. </div></div>
  3295. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  3296. <div class="listingblock">
  3297. <div class="content">
  3298. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  3299. </div></div>
  3300. <div class="admonitionblock">
  3301. <table><tr>
  3302. <td class="icon">
  3303. <div class="title">Note</div>
  3304. </td>
  3305. <td class="content">Since aria2 doesn&#8217;t configure firewall or router for port forwarding, it&#8217;s up
  3306. to you to do it manually.</td>
  3307. </tr></table>
  3308. </div>
  3309. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  3310. <div class="listingblock">
  3311. <div class="content">
  3312. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  3313. </div></div>
  3314. <div class="admonitionblock">
  3315. <table><tr>
  3316. <td class="icon">
  3317. <div class="title">Note</div>
  3318. </td>
  3319. <td class="content">In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.</td>
  3320. </tr></table>
  3321. </div>
  3322. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  3323. <div class="listingblock">
  3324. <div class="content">
  3325. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  3326. </div></div>
  3327. <h4 id="_enable_dht">Enable DHT</h4>
  3328. <div class="listingblock">
  3329. <div class="content">
  3330. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  3331. </div></div>
  3332. <div class="admonitionblock">
  3333. <table><tr>
  3334. <td class="icon">
  3335. <div class="title">Note</div>
  3336. </td>
  3337. <td class="content">DHT uses udp port. Since aria2 doesn&#8217;t configure firewall or router for port
  3338. forwarding, it&#8217;s up to you to do it manually.</td>
  3339. </tr></table>
  3340. </div>
  3341. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  3342. <h4 id="_load_cookies">Load cookies</h4>
  3343. <div class="listingblock">
  3344. <div class="content">
  3345. <pre><tt>aria2c --load-cookies=cookies.txt "http://host/file.zip"</tt></pre>
  3346. </div></div>
  3347. <div class="admonitionblock">
  3348. <table><tr>
  3349. <td class="icon">
  3350. <div class="title">Note</div>
  3351. </td>
  3352. <td class="content">You can use Firefox/Mozilla&#8217;s cookie file without modification.</td>
  3353. </tr></table>
  3354. </div>
  3355. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  3356. <div class="listingblock">
  3357. <div class="content">
  3358. <pre><tt>aria2c -c -s2 "http://host/partiallydownloadedfile.zip"</tt></pre>
  3359. </div></div>
  3360. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  3361. <div class="listingblock">
  3362. <div class="content">
  3363. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  3364. </div></div>
  3365. <div class="admonitionblock">
  3366. <table><tr>
  3367. <td class="icon">
  3368. <div class="title">Note</div>
  3369. </td>
  3370. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  3371. encrypted one is given is undefined.</td>
  3372. </tr></table>
  3373. </div>
  3374. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  3375. <div class="listingblock">
  3376. <div class="content">
  3377. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  3378. </div></div>
  3379. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  3380. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  3381. <div class="listingblock">
  3382. <div class="content">
  3383. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  3384. </div></div>
  3385. <h4 id="_repair_a_damaged_download">Repair a damaged download</h4>
  3386. <div class="listingblock">
  3387. <div class="content">
  3388. <pre><tt>aria2c -V file.metalink</tt></pre>
  3389. </div></div>
  3390. <div class="admonitionblock">
  3391. <table><tr>
  3392. <td class="icon">
  3393. <div class="title">Note</div>
  3394. </td>
  3395. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  3396. checksums.</td>
  3397. </tr></table>
  3398. </div>
  3399. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  3400. <div class="listingblock">
  3401. <div class="content">
  3402. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  3403. </div></div>
  3404. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  3405. <div class="paragraph"><p>You can specify set of parts:</p></div>
  3406. <div class="listingblock">
  3407. <div class="content">
  3408. <pre><tt>aria2c -P "http://{host1,host2,host3}/file.iso"</tt></pre>
  3409. </div></div>
  3410. <div class="paragraph"><p>You can specify numeric sequence:</p></div>
  3411. <div class="listingblock">
  3412. <div class="content">
  3413. <pre><tt>aria2c -Z -P "http://host/image[000-100].png"</tt></pre>
  3414. </div></div>
  3415. <div class="admonitionblock">
  3416. <table><tr>
  3417. <td class="icon">
  3418. <div class="title">Note</div>
  3419. </td>
  3420. <td class="content">-Z option is required if the all URIs don&#8217;t point to the same file, such as the above example.</td>
  3421. </tr></table>
  3422. </div>
  3423. <div class="paragraph"><p>You can specify step counter:</p></div>
  3424. <div class="listingblock">
  3425. <div class="content">
  3426. <pre><tt>aria2c -Z -P "http://host/image[A-Z:2].png"</tt></pre>
  3427. </div></div>
  3428. <h4 id="_parallel_downloads_of_arbitrary_number_of_url_metalink_torrent">Parallel downloads of arbitrary number of URL,metalink,torrent</h4>
  3429. <div class="listingblock">
  3430. <div class="content">
  3431. <pre><tt>aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink</tt></pre>
  3432. </div></div>
  3433. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  3434. <div class="paragraph"><p>Encrypt whole payload using ARC4:</p></div>
  3435. <div class="listingblock">
  3436. <div class="content">
  3437. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  3438. </div></div>
  3439. </div>
  3440. <h2 id="_see_also">SEE ALSO</h2>
  3441. <div class="sectionbody">
  3442. <div class="paragraph"><p>Project Web Site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  3443. <div class="paragraph"><p>aria2 Wiki: <a href="http://sourceforge.net/apps/trac/aria2/wiki">http://sourceforge.net/apps/trac/aria2/wiki</a></p></div>
  3444. <div class="paragraph"><p>Metalink Homepage: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  3445. </div>
  3446. <h2 id="_copyright">COPYRIGHT</h2>
  3447. <div class="sectionbody">
  3448. <div class="paragraph"><p>Copyright &#169; 2006, 2009 Tatsuhiro Tsujikawa</p></div>
  3449. <div class="paragraph"><p>This program is free software; you can redistribute it and/or modify
  3450. it under the terms of the GNU General Public License as published by
  3451. the Free Software Foundation; either version 2 of the License, or
  3452. (at your option) any later version.</p></div>
  3453. <div class="paragraph"><p>This program is distributed in the hope that it will be useful,
  3454. but WITHOUT ANY WARRANTY; without even the implied warranty of
  3455. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3456. GNU General Public License for more details.</p></div>
  3457. <div class="paragraph"><p>You should have received a copy of the GNU General Public License
  3458. along with this program; if not, write to the Free Software
  3459. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  3460. <div class="paragraph"><p>In addition, as a special exception, the copyright holders give
  3461. permission to link the code of portions of this program with the
  3462. OpenSSL library under certain conditions as described in each
  3463. individual source file, and distribute linked combinations
  3464. including the two.
  3465. You must obey the GNU General Public License in all respects
  3466. for all of the code used other than OpenSSL. If you modify
  3467. file(s) with this exception, you may extend this exception to your
  3468. version of the file(s), but you are not obligated to do so. If you
  3469. do not wish to do so, delete this exception statement from your
  3470. version. If you delete this exception statement from all source
  3471. files in the program, then also delete it here.</p></div>
  3472. </div>
  3473. </div>
  3474. <div id="footnotes"><hr /></div>
  3475. <div id="footer">
  3476. <div id="footer-text">
  3477. Last updated 2009-12-27 14:37:51 JST
  3478. </div>
  3479. </div>
  3480. </body>
  3481. </html>