aria2c.1.html 129 KB

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