aria2c.1.html 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221
  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.
  845. If more than N URIs are given, first N URIs are used and remaining URIs are
  846. used for backup.
  847. If less than N URIs are given, those URIs are used more than once so that N
  848. connections total are made simultaneously.
  849. Please see <strong>-j</strong> option too.
  850. Please note that in Metalink download, this option has no effect and use
  851. <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-external-ip</strong>=IPADDRESS
  1261. </dt>
  1262. <dd>
  1263. <p>
  1264. Specify the external IP address to report to a BitTorrent
  1265. tracker. Although this function is named "external", it can accept
  1266. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  1267. </p>
  1268. </dd>
  1269. <dt class="hdlist1">
  1270. <strong>--bt-hash-check-seed</strong>[=<em>true</em>|<em>false</em>]
  1271. </dt>
  1272. <dd>
  1273. <p>
  1274. If <em>true</em> is given, after hash check using <strong>--check-integrity</strong> option and
  1275. file is complete, continue to seed file. If you want to check file
  1276. and download it only when it is damaged or incomplete, set this
  1277. option to <em>false</em>. This option has effect only on BitTorrent download.
  1278. Default: <em>true</em>
  1279. </p>
  1280. </dd>
  1281. <dt class="hdlist1">
  1282. <strong>--bt-lpd-interface</strong>=INTERFACE
  1283. </dt>
  1284. <dd>
  1285. <p>
  1286. Use given interface for Local Peer Discovery. If this option is not
  1287. specified, the default interface is chosen. You can specify
  1288. interface name and IP address. Possible Values: interface, IP
  1289. addres
  1290. </p>
  1291. </dd>
  1292. <dt class="hdlist1">
  1293. <strong>--bt-max-open-files</strong>=NUM
  1294. </dt>
  1295. <dd>
  1296. <p>
  1297. Specify maximum number of files to open in each BitTorrent download.
  1298. Default: <em>100</em>
  1299. </p>
  1300. </dd>
  1301. <dt class="hdlist1">
  1302. <strong>--bt-max-peers</strong>=NUM
  1303. </dt>
  1304. <dd>
  1305. <p>
  1306. Specify the maximum number of peers per torrent. <em>0</em> means
  1307. unlimited. See also <strong>--bt-request-peer-speed-limit</strong> option.
  1308. Default: <em>55</em>
  1309. </p>
  1310. </dd>
  1311. <dt class="hdlist1">
  1312. <strong>--bt-metadata-only</strong>[=<em>true</em>|<em>false</em>]
  1313. </dt>
  1314. <dd>
  1315. <p>
  1316. Download metadata only. The file(s) described in metadata will not
  1317. be downloaded. This option has effect only when BitTorrent Magnet
  1318. URI is used. See also <strong>--bt-save-metadata</strong> option. Default: <em>false</em>
  1319. </p>
  1320. </dd>
  1321. <dt class="hdlist1">
  1322. <strong>--bt-min-crypto-level</strong>=<em>plain</em>|<em>arc4</em>
  1323. </dt>
  1324. <dd>
  1325. <p>
  1326. Set minimum level of encryption method.
  1327. If several encryption methods are provided by a peer, aria2 chooses the lowest
  1328. one which satisfies the given level.
  1329. Default: <em>plain</em>
  1330. </p>
  1331. </dd>
  1332. <dt class="hdlist1">
  1333. <strong>--bt-prioritize-piece</strong>=<em>head</em>[=SIZE],<em>tail</em>[=SIZE]
  1334. </dt>
  1335. <dd>
  1336. <p>
  1337. Try to download first and last pieces of each file first. This is
  1338. useful for previewing files. The argument can contain 2 keywords:
  1339. <em>head</em> and <em>tail</em>. To include both keywords, they must be separated
  1340. by comma. These keywords can take one parameter, SIZE. For example,
  1341. if <em>head</em>=SIZE is specified, pieces in the range of first SIZE bytes
  1342. of each file get higher priority. <em>tail</em>=SIZE means the range of
  1343. last SIZE bytes of each file. SIZE can include <em>K</em> or <em>M</em>(1K = 1024,
  1344. 1M = 1024K). If SIZE is omitted, SIZE=1M is used.
  1345. </p>
  1346. </dd>
  1347. <dt class="hdlist1">
  1348. <strong>--bt-require-crypto</strong>=<em>true</em>|<em>false</em>
  1349. </dt>
  1350. <dd>
  1351. <p>
  1352. If true is given, aria2 doesn&#8217;t accept and establish connection with legacy
  1353. BitTorrent handshake(\19BitTorrent protocol).
  1354. Thus aria2 always uses Obfuscation handshake.
  1355. Default: <em>false</em>
  1356. </p>
  1357. </dd>
  1358. <dt class="hdlist1">
  1359. <strong>--bt-request-peer-speed-limit</strong>=SPEED
  1360. </dt>
  1361. <dd>
  1362. <p>
  1363. If the whole download speed of every torrent is lower than SPEED,
  1364. aria2 temporarily increases the number of peers to try for more
  1365. download speed. Configuring this option with your preferred download
  1366. speed can increase your download speed in some cases.
  1367. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1368. Default: <em>50K</em>
  1369. </p>
  1370. </dd>
  1371. <dt class="hdlist1">
  1372. <strong>--bt-save-metadata</strong>[=<em>true</em>|<em>false</em>]
  1373. </dt>
  1374. <dd>
  1375. <p>
  1376. Save metadata as .torrent file. This option has effect only when
  1377. BitTorrent Magnet URI is used. The filename is hex encoded info
  1378. hash with suffix .torrent. The directory to be saved is the same
  1379. directory where download file is saved. If the same file already
  1380. exists, metadata is not saved. See also <strong>--bt-metadata-only</strong>
  1381. option. Default: <em>false</em>
  1382. </p>
  1383. </dd>
  1384. <dt class="hdlist1">
  1385. <strong>--bt-seed-unverified</strong>[=<em>true</em>|<em>false</em>]
  1386. </dt>
  1387. <dd>
  1388. <p>
  1389. Seed previously downloaded files without verifying piece hashes.
  1390. Default: <em>false</em>
  1391. </p>
  1392. </dd>
  1393. <dt class="hdlist1">
  1394. <strong>--bt-stop-timeout</strong>=SEC
  1395. </dt>
  1396. <dd>
  1397. <p>
  1398. Stop BitTorrent download if download speed is 0 in consecutive SEC
  1399. seconds. If <em>0</em> is given, this feature is disabled. Default: <em>0</em>
  1400. </p>
  1401. </dd>
  1402. <dt class="hdlist1">
  1403. <strong>--bt-tracker-connect-timeout</strong>=SEC
  1404. </dt>
  1405. <dd>
  1406. <p>
  1407. Set the connect timeout in seconds to establish connection to
  1408. tracker. After the connection is established, this option makes no
  1409. effect and <strong>--bt-tracker-timeout</strong> option is used instead. Default:
  1410. <em>60</em>
  1411. </p>
  1412. </dd>
  1413. <dt class="hdlist1">
  1414. <strong>--bt-tracker-interval</strong>=SEC
  1415. </dt>
  1416. <dd>
  1417. <p>
  1418. Set the interval in seconds between tracker requests. This
  1419. completely overrides interval value and aria2 just uses this value
  1420. and ignores the min interval and interval value in the response of
  1421. tracker. If <em>0</em> is set, aria2 determines interval based on the
  1422. response of tracker and the download progress. Default: <em>0</em>
  1423. </p>
  1424. </dd>
  1425. <dt class="hdlist1">
  1426. <strong>--bt-tracker-timeout</strong>=SEC
  1427. </dt>
  1428. <dd>
  1429. <p>
  1430. Set timeout in seconds. Default: <em>60</em>
  1431. </p>
  1432. </dd>
  1433. <dt class="hdlist1">
  1434. <strong>--dht-entry-point</strong>=HOST:PORT
  1435. </dt>
  1436. <dd>
  1437. <p>
  1438. Set host and port as an entry point to DHT network.
  1439. </p>
  1440. </dd>
  1441. <dt class="hdlist1">
  1442. <strong>--dht-file-path</strong>=PATH
  1443. </dt>
  1444. <dd>
  1445. <p>
  1446. Change the DHT routing table file to PATH.
  1447. Default: <em>$HOME/.aria2/dht.dat</em>
  1448. </p>
  1449. </dd>
  1450. <dt class="hdlist1">
  1451. <strong>--dht-listen-port</strong>=PORT&#8230;
  1452. </dt>
  1453. <dd>
  1454. <p>
  1455. Set UDP listening port for DHT.
  1456. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1457. You can also use "-" to specify a range: <em>6881-6999</em>. "," and "-" can be used
  1458. together.
  1459. Default: <em>6881-6999</em>
  1460. </p>
  1461. </dd>
  1462. </dl></div>
  1463. <div class="admonitionblock">
  1464. <table><tr>
  1465. <td class="icon">
  1466. <div class="title">Note</div>
  1467. </td>
  1468. <td class="content">Make sure that the specified ports are open for incoming UDP traffic.</td>
  1469. </tr></table>
  1470. </div>
  1471. <div class="dlist"><dl>
  1472. <dt class="hdlist1">
  1473. <strong>--dht-message-timeout</strong>=SEC
  1474. </dt>
  1475. <dd>
  1476. <p>
  1477. Set timeout in seconds. Default: <em>10</em>
  1478. </p>
  1479. </dd>
  1480. <dt class="hdlist1">
  1481. <strong>--enable-dht</strong>[=<em>true</em>|<em>false</em>]
  1482. </dt>
  1483. <dd>
  1484. <p>
  1485. Enable DHT functionality. If a private flag is set in a torrent, aria2
  1486. doesn&#8217;t use DHT for that download even if <em>true</em> is given.
  1487. Default: <em>true</em>
  1488. </p>
  1489. </dd>
  1490. <dt class="hdlist1">
  1491. <strong>--enable-peer-exchange</strong>[=<em>true</em>|<em>false</em>]
  1492. </dt>
  1493. <dd>
  1494. <p>
  1495. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  1496. feature is disabled for that download even if <em>true</em> is given.
  1497. Default: <em>true</em>
  1498. </p>
  1499. </dd>
  1500. <dt class="hdlist1">
  1501. <strong>--follow-torrent</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1502. </dt>
  1503. <dd>
  1504. <p>
  1505. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".torrent" or content
  1506. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  1507. file and downloads files mentioned in it.
  1508. If <em>mem</em> is specified, a torrent file is not written to the disk, but is just
  1509. kept in memory.
  1510. If <em>false</em> is specified, the action mentioned above is not taken.
  1511. Default: <em>true</em>
  1512. </p>
  1513. </dd>
  1514. <dt class="hdlist1">
  1515. <strong>-O</strong>, <strong>--index-out</strong>=INDEX=PATH
  1516. </dt>
  1517. <dd>
  1518. <p>
  1519. Set file path for file with index=INDEX. You can find the file index
  1520. using the <strong>--show-files</strong> option. PATH is a relative path to the
  1521. path specified in <strong>--dir</strong> option. You can use this option multiple
  1522. times. Using this option, you can specify the output filenames of
  1523. BitTorrent downloads.
  1524. </p>
  1525. </dd>
  1526. <dt class="hdlist1">
  1527. <strong>--listen-port</strong>=PORT&#8230;
  1528. </dt>
  1529. <dd>
  1530. <p>
  1531. Set TCP port number for BitTorrent downloads.
  1532. Multiple ports can be specified by using ",", for example: <em>6881,6885</em>.
  1533. You can also use "-" to specify a range: <em>6881-6999</em>.
  1534. "," and "-" can be used together: <em>6881-6889,6999</em>.
  1535. Default: <em>6881-6999</em>
  1536. </p>
  1537. </dd>
  1538. </dl></div>
  1539. <div class="admonitionblock">
  1540. <table><tr>
  1541. <td class="icon">
  1542. <div class="title">Note</div>
  1543. </td>
  1544. <td class="content">Make sure that the specified ports are open for incoming TCP traffic.</td>
  1545. </tr></table>
  1546. </div>
  1547. <div class="dlist"><dl>
  1548. <dt class="hdlist1">
  1549. <strong>--max-overall-upload-limit</strong>=SPEED
  1550. </dt>
  1551. <dd>
  1552. <p>
  1553. Set max overall upload speed in bytes/sec.
  1554. <em>0</em> means unrestricted.
  1555. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1556. To limit the upload speed per torrent, use <strong>--max-upload-limit</strong> option.
  1557. Default: <em>0</em>
  1558. </p>
  1559. </dd>
  1560. <dt class="hdlist1">
  1561. <strong>-u</strong>, <strong>--max-upload-limit</strong>=SPEED
  1562. </dt>
  1563. <dd>
  1564. <p>
  1565. Set max upload speed per each torrent in bytes/sec.
  1566. <em>0</em> means unrestricted.
  1567. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  1568. To limit the overall upload speed, use <strong>--max-overall-upload-limit</strong> option.
  1569. Default: <em>0</em>
  1570. </p>
  1571. </dd>
  1572. <dt class="hdlist1">
  1573. <strong>--peer-id-prefix</strong>=PEER_ID_PREFIX
  1574. </dt>
  1575. <dd>
  1576. <p>
  1577. Specify the prefix of peer ID. The peer ID in
  1578. BitTorrent is 20 byte length. If more than 20
  1579. bytes are specified, only first 20 bytes are
  1580. used. If less than 20 bytes are specified, random
  1581. byte data are added to make its length 20 bytes.
  1582. Default: <em>aria2/$VERSION-</em>, $VERSION is replaced by package version.
  1583. </p>
  1584. </dd>
  1585. <dt class="hdlist1">
  1586. <strong>--seed-ratio</strong>=RATIO
  1587. </dt>
  1588. <dd>
  1589. <p>
  1590. Specify share ratio. Seed completed torrents until share ratio reaches
  1591. RATIO.
  1592. You are strongly encouraged to specify equals or more than <em>1.0</em> here.
  1593. Specify <em>0.0</em> if you intend to do seeding regardless of share ratio.
  1594. If <strong>--seed-time</strong> option is specified along with this option, seeding ends when
  1595. at least one of the conditions is satisfied.
  1596. Default: <em>1.0</em>
  1597. </p>
  1598. </dd>
  1599. <dt class="hdlist1">
  1600. <strong>--seed-time</strong>=MINUTES
  1601. </dt>
  1602. <dd>
  1603. <p>
  1604. Specify seeding time in minutes. Also see the <strong>--seed-ratio</strong> option.
  1605. </p>
  1606. </dd>
  1607. </dl></div>
  1608. <div class="admonitionblock">
  1609. <table><tr>
  1610. <td class="icon">
  1611. <div class="title">Note</div>
  1612. </td>
  1613. <td class="content">Specifying <strong>--seed-time</strong>=<em>0</em> disables seeding after download completed.</td>
  1614. </tr></table>
  1615. </div>
  1616. <div class="dlist"><dl>
  1617. <dt class="hdlist1">
  1618. <strong>-T</strong>, <strong>--torrent-file</strong>=TORRENT_FILE
  1619. </dt>
  1620. <dd>
  1621. <p>
  1622. The path to the .torrent file. You are not required to use this
  1623. option because you can specify .torrent files without <strong>-T</strong>.
  1624. </p>
  1625. </dd>
  1626. </dl></div>
  1627. <h3 id="_metalink_specific_options">Metalink Specific Options</h3><div style="clear:left"></div>
  1628. <div class="dlist"><dl>
  1629. <dt class="hdlist1">
  1630. <strong>--follow-metalink</strong>=<em>true</em>|<em>false</em>|<em>mem</em>
  1631. </dt>
  1632. <dd>
  1633. <p>
  1634. If <em>true</em> or <em>mem</em> is specified, when a file whose suffix is ".metalink" or content
  1635. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  1636. file and downloads files mentioned in it.
  1637. If <em>mem</em> is specified, a metalink file is not written to the disk, but is just
  1638. kept in memory.
  1639. If <em>false</em> is specified, the action mentioned above is not taken.
  1640. Default: <em>true</em>
  1641. </p>
  1642. </dd>
  1643. <dt class="hdlist1">
  1644. <strong>-M</strong>, <strong>--metalink-file</strong>=METALINK_FILE
  1645. </dt>
  1646. <dd>
  1647. <p>
  1648. The file path to .metalink file. Reads input from stdin when <em>-</em> is
  1649. specified. You are not required to use this option because you can
  1650. specify .metalink files without <strong>-M</strong>.
  1651. </p>
  1652. </dd>
  1653. <dt class="hdlist1">
  1654. <strong>-C</strong>, <strong>--metalink-servers</strong>=NUM_SERVERS
  1655. </dt>
  1656. <dd>
  1657. <p>
  1658. The number of servers to connect to simultaneously.
  1659. Some Metalinks regulate the number of servers to connect.
  1660. aria2 strictly respects them.
  1661. This means that if Metalink defines the maxconnections attribute lower
  1662. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  1663. instead of NUM_SERVERS.
  1664. See also <strong>-s</strong> and <strong>-j</strong> options.
  1665. Default: <em>5</em>
  1666. </p>
  1667. </dd>
  1668. <dt class="hdlist1">
  1669. <strong>--metalink-language</strong>=LANGUAGE
  1670. </dt>
  1671. <dd>
  1672. <p>
  1673. The language of the file to download.
  1674. </p>
  1675. </dd>
  1676. <dt class="hdlist1">
  1677. <strong>--metalink-location</strong>=LOCATION[,&#8230;]
  1678. </dt>
  1679. <dd>
  1680. <p>
  1681. The location of the preferred server.
  1682. A comma-delimited list of locations is acceptable, for example, <em>jp,us</em>.
  1683. </p>
  1684. </dd>
  1685. <dt class="hdlist1">
  1686. <strong>--metalink-os</strong>=OS
  1687. </dt>
  1688. <dd>
  1689. <p>
  1690. The operating system of the file to download.
  1691. </p>
  1692. </dd>
  1693. <dt class="hdlist1">
  1694. <strong>--metalink-version</strong>=VERSION
  1695. </dt>
  1696. <dd>
  1697. <p>
  1698. The version of the file to download.
  1699. </p>
  1700. </dd>
  1701. <dt class="hdlist1">
  1702. <strong>--metalink-preferred-protocol</strong>=PROTO
  1703. </dt>
  1704. <dd>
  1705. <p>
  1706. Specify preferred protocol.
  1707. The possible values are <em>http</em>, <em>https</em>, <em>ftp</em> and <em>none</em>.
  1708. Specify <em>none</em> to disable this feature.
  1709. Default: <em>none</em>
  1710. </p>
  1711. </dd>
  1712. <dt class="hdlist1">
  1713. <strong>--metalink-enable-unique-protocol</strong>=<em>true</em>|<em>false</em>
  1714. </dt>
  1715. <dd>
  1716. <p>
  1717. If <em>true</em> is given and several protocols are available for a mirror in a
  1718. metalink file, aria2 uses one of them.
  1719. Use <strong>--metalink-preferred-protocol</strong> option to specify the preference of
  1720. protocol.
  1721. Default: <em>true</em>
  1722. </p>
  1723. </dd>
  1724. </dl></div>
  1725. <h3 id="_xml_rpc_options">XML-RPC Options</h3><div style="clear:left"></div>
  1726. <div class="dlist"><dl>
  1727. <dt class="hdlist1">
  1728. <strong>--enable-xml-rpc</strong>[=<em>true</em>|<em>false</em>]
  1729. </dt>
  1730. <dd>
  1731. <p>
  1732. Enable XML-RPC server. It is strongly recommended to set username
  1733. and password using <strong>--xml-rpc-user</strong> and <strong>--xml-rpc-passwd</strong>
  1734. option. See also <strong>--xml-rpc-listen-port</strong> option. Default: <em>false</em>
  1735. </p>
  1736. </dd>
  1737. <dt class="hdlist1">
  1738. <strong>--xml-rpc-listen-all</strong>[=<em>true</em>|<em>false</em>]
  1739. </dt>
  1740. <dd>
  1741. <p>
  1742. Listen incoming XML-RPC requests on all network interfaces. If false
  1743. is given, listen only on local loopback interface. Default: <em>false</em>
  1744. </p>
  1745. </dd>
  1746. <dt class="hdlist1">
  1747. <strong>--xml-rpc-listen-port</strong>=PORT
  1748. </dt>
  1749. <dd>
  1750. <p>
  1751. Specify a port number for XML-RPC server to listen to. Possible
  1752. Values: <em>1024</em>-<em>65535</em> Default: <em>6800</em>
  1753. </p>
  1754. </dd>
  1755. <dt class="hdlist1">
  1756. <strong>--xml-rpc-max-request-size</strong>=SIZE
  1757. </dt>
  1758. <dd>
  1759. <p>
  1760. Set max size of XML-RPC request. If aria2 detects the request is
  1761. more than SIZE bytes, it drops connection. Default: <em>2M</em>
  1762. </p>
  1763. </dd>
  1764. <dt class="hdlist1">
  1765. <strong>--xml-rpc-passwd</strong>=PASSWD
  1766. </dt>
  1767. <dd>
  1768. <p>
  1769. Set XML-RPC password.
  1770. </p>
  1771. </dd>
  1772. <dt class="hdlist1">
  1773. <strong>--xml-rpc-user</strong>=USER
  1774. </dt>
  1775. <dd>
  1776. <p>
  1777. Set XML-RPC user.
  1778. </p>
  1779. </dd>
  1780. </dl></div>
  1781. <h3 id="_advanced_options">Advanced Options</h3><div style="clear:left"></div>
  1782. <div class="dlist"><dl>
  1783. <dt class="hdlist1">
  1784. <strong>--allow-overwrite</strong>=<em>true</em>|<em>false</em>
  1785. </dt>
  1786. <dd>
  1787. <p>
  1788. Restart download from scratch if the corresponding control file
  1789. doesn&#8217;t exist. See also <strong>--auto-file-renaming</strong> option. Default:
  1790. <em>false</em>
  1791. </p>
  1792. </dd>
  1793. <dt class="hdlist1">
  1794. <strong>--allow-piece-length-change</strong>=<em>true</em>|<em>false</em>
  1795. </dt>
  1796. <dd>
  1797. <p>
  1798. If false is given, aria2 aborts download when a piece length is different
  1799. from one in a control file.
  1800. If true is given, you can proceed but some download progress will be lost.
  1801. Default: <em>false</em>
  1802. </p>
  1803. </dd>
  1804. <dt class="hdlist1">
  1805. <strong>--always-resume</strong>[=<em>true</em>|<em>false</em>]
  1806. </dt>
  1807. <dd>
  1808. <p>
  1809. Always resume download. If <em>true</em> is given, aria2 always tries to
  1810. resume download and if resume is not possible, aborts download. If
  1811. <em>false</em> is given, when all given URIs do not support resume or aria2
  1812. encounters <em>N</em> URIs which does not support resume (<em>N</em> is the value
  1813. specified using <strong>--max-resume-failure-tries</strong> option), aria2
  1814. downloads file from scratch. See <strong>--max-resume-failure-tries</strong>
  1815. option. Default: <em>true</em>
  1816. </p>
  1817. </dd>
  1818. <dt class="hdlist1">
  1819. <strong>--async-dns</strong>[=<em>true</em>|<em>false</em>]
  1820. </dt>
  1821. <dd>
  1822. <p>
  1823. Enable asynchronous DNS.
  1824. Default: <em>true</em>
  1825. </p>
  1826. </dd>
  1827. <dt class="hdlist1">
  1828. <strong>--auto-file-renaming</strong>[=<em>true</em>|<em>false</em>]
  1829. </dt>
  1830. <dd>
  1831. <p>
  1832. Rename file name if the same file already exists.
  1833. This option works only in HTTP(S)/FTP download.
  1834. The new file name has a dot and a number(1..9999) appended.
  1835. Default: <em>true</em>
  1836. </p>
  1837. </dd>
  1838. <dt class="hdlist1">
  1839. <strong>--auto-save-interval</strong>=SEC
  1840. </dt>
  1841. <dd>
  1842. <p>
  1843. Save a control file(*.aria2) every SEC seconds.
  1844. If <em>0</em> is given, a control file is not saved during download. aria2 saves a
  1845. control file when it stops regardless of the value.
  1846. The possible values are between <em>0</em> to <em>600</em>.
  1847. Default: <em>60</em>
  1848. </p>
  1849. </dd>
  1850. <dt class="hdlist1">
  1851. <strong>--conf-path</strong>=PATH
  1852. </dt>
  1853. <dd>
  1854. <p>
  1855. Change the configuration file path to PATH.
  1856. Default: <em>$HOME/.aria2/aria2.conf</em>
  1857. </p>
  1858. </dd>
  1859. <dt class="hdlist1">
  1860. <strong>-D</strong>, <strong>--daemon</strong>
  1861. </dt>
  1862. <dd>
  1863. <p>
  1864. Run as daemon. The current working directory will be changed to <em>/</em>
  1865. and standard input, standard output and standard error will be
  1866. redirected to <em>/dev/null</em>. Default: <em>false</em>
  1867. </p>
  1868. </dd>
  1869. <dt class="hdlist1">
  1870. <strong>--disable-ipv6</strong>[=<em>true</em>|<em>false</em>]
  1871. </dt>
  1872. <dd>
  1873. <p>
  1874. Disable IPv6. This is useful if you have to use broken DNS and want
  1875. to avoid terribly slow AAAA record lookup. Default: <em>false</em>
  1876. </p>
  1877. </dd>
  1878. <dt class="hdlist1">
  1879. <strong>--enable-direct-io</strong>[=<em>true</em>|<em>false</em>]
  1880. </dt>
  1881. <dd>
  1882. <p>
  1883. Enable directI/O, which lowers cpu usage while allocating/checking files.
  1884. Turn off if you encounter any error.
  1885. Default: <em>true</em>
  1886. </p>
  1887. </dd>
  1888. <dt class="hdlist1">
  1889. <strong>--event-poll</strong>=POLL
  1890. </dt>
  1891. <dd>
  1892. <p>
  1893. Specify the method for polling events. The possible values are
  1894. <em>epoll</em>, <em>kqueue</em>, <em>port</em>, <em>poll</em> and <em>select</em>. For each <em>epoll</em>,
  1895. <em>kqueue</em>, <em>port</em> and <em>poll</em>, it is available if system supports it.
  1896. <em>epoll</em> is available on recent Linux. <em>kqueue</em> is available on
  1897. various *BSD systems including Mac OS X. <em>port</em> is available on Open
  1898. Solaris. The default value may vary depending on the system you use.
  1899. </p>
  1900. </dd>
  1901. <dt class="hdlist1">
  1902. <strong>--file-allocation</strong>=METHOD
  1903. </dt>
  1904. <dd>
  1905. <p>
  1906. Specify file allocation method.
  1907. <em>none</em> doesn&#8217;t pre-allocate file space. <em>prealloc</em> pre-allocates file space
  1908. before download begins. This may take some time depending on the size of the
  1909. file.
  1910. If you are using newer file systems such as ext4
  1911. (with extents support), btrfs or xfs, <em>falloc</em> is
  1912. your best choice. It allocates large(few GiB)
  1913. files almost instantly. Don&#8217;t use <em>falloc</em> with
  1914. legacy file systems such as ext3 because it takes
  1915. almost same time as <em>prealloc</em> and it blocks aria2
  1916. entirely until allocation finishes. <em>falloc</em> may
  1917. not be available if your system doesn&#8217;t have
  1918. <strong>posix_fallocate</strong>() function.
  1919. Possible Values: <em>none</em>, <em>prealloc</em>, <em>falloc</em>
  1920. Default: <em>prealloc</em>
  1921. </p>
  1922. </dd>
  1923. <dt class="hdlist1">
  1924. <strong>--human-readable</strong>[=<em>true</em>|<em>false</em>]
  1925. </dt>
  1926. <dd>
  1927. <p>
  1928. Print sizes and speed in human readable format (e.g., 1.2Ki, 3.4Mi)
  1929. in the console readout. Default: <em>true</em>
  1930. </p>
  1931. </dd>
  1932. <dt class="hdlist1">
  1933. <strong>--interface</strong>=INTERFACE
  1934. </dt>
  1935. <dd>
  1936. <p>
  1937. Bind sockets to given interface. You can specify interface name, IP
  1938. address and hostname.
  1939. Possible Values: interface, IP address, hostname
  1940. </p>
  1941. </dd>
  1942. </dl></div>
  1943. <div class="admonitionblock">
  1944. <table><tr>
  1945. <td class="icon">
  1946. <div class="title">Note</div>
  1947. </td>
  1948. <td class="content">If an interface has multiple addresses, it is highly recommended to
  1949. specify IP address explicitly. See also <strong>--disable-ipv6</strong>. If your
  1950. system doesn&#8217;t have getifaddrs(), this option doesn&#8217;t accept interface
  1951. name.</td>
  1952. </tr></table>
  1953. </div>
  1954. <div class="dlist"><dl>
  1955. <dt class="hdlist1">
  1956. <strong>--max-resume-failure-tries</strong>=<em>N</em>
  1957. </dt>
  1958. <dd>
  1959. <p>
  1960. When used with <strong>--always-resume</strong>=<em>false</em>, aria2 downloads file from
  1961. scratch when aria2 detects <em>N</em> number of URIs that does not support
  1962. resume. If <em>N</em> is <em>0</em>, aria2 downloads file from scratch when all
  1963. given URIs do not support resume. See <strong>--always-resume</strong> option.
  1964. Default: <em>0</em>
  1965. </p>
  1966. </dd>
  1967. <dt class="hdlist1">
  1968. <strong>--log-level</strong>=LEVEL
  1969. </dt>
  1970. <dd>
  1971. <p>
  1972. Set log level to output.
  1973. LEVEL is either <em>debug</em>, <em>info</em>, <em>notice</em>, <em>warn</em> or <em>error</em>.
  1974. Default: <em>debug</em>
  1975. </p>
  1976. </dd>
  1977. <dt class="hdlist1">
  1978. <strong>--on-download-complete</strong>=COMMAND
  1979. </dt>
  1980. <dd>
  1981. <p>
  1982. Set the command to be executed when download completes. See
  1983. <strong>--on-download-start</strong> option for the requirement of COMMAND. See
  1984. also <strong>--on-download-stop</strong> option. Possible Values:
  1985. <em>/path/to/command</em>
  1986. </p>
  1987. </dd>
  1988. <dt class="hdlist1">
  1989. <strong>--on-download-error</strong>=COMMAND
  1990. </dt>
  1991. <dd>
  1992. <p>
  1993. Set the command to be executed when download aborts due to error.
  1994. See <strong>--on-download-start</strong> option for the requirement of COMMAND.
  1995. See also <strong>--on-download-stop</strong> option. Possible Values:
  1996. <em>/path/to/command</em>
  1997. </p>
  1998. </dd>
  1999. <dt class="hdlist1">
  2000. <strong>--on-download-pause</strong>=COMMAND
  2001. </dt>
  2002. <dd>
  2003. <p>
  2004. Set the command to be executed when download is paused. See
  2005. <strong>--on-download-start</strong> option for the requirement of COMMAND.
  2006. Possible Values: <em>/path/to/command</em>
  2007. </p>
  2008. </dd>
  2009. <dt class="hdlist1">
  2010. <strong>--on-download-start</strong>=COMMAND
  2011. </dt>
  2012. <dd>
  2013. <p>
  2014. Set the command to be executed when download starts up. COMMAND must
  2015. take just one argument and GID is passed to COMMAND as a first
  2016. argument. Possible Values: <em>/path/to/command</em>
  2017. </p>
  2018. </dd>
  2019. <dt class="hdlist1">
  2020. <strong>--on-download-stop</strong>=COMMAND
  2021. </dt>
  2022. <dd>
  2023. <p>
  2024. Set the command to be executed when download stops. You can override
  2025. the command to be executed for particular download result using
  2026. <strong>--on-download-complete</strong> and <strong>--on-download-error</strong>. If they are
  2027. specified, command specified in this option is not executed. See
  2028. <strong>--on-download-start</strong> option for the requirement of COMMAND.
  2029. Possible Values: <em>/path/to/command</em>
  2030. </p>
  2031. </dd>
  2032. <dt class="hdlist1">
  2033. <strong>--summary-interval</strong>=SEC
  2034. </dt>
  2035. <dd>
  2036. <p>
  2037. Set interval in seconds to output download progress summary.
  2038. Setting <em>0</em> suppresses the output.
  2039. Default: <em>60</em>
  2040. </p>
  2041. </dd>
  2042. </dl></div>
  2043. <div class="admonitionblock">
  2044. <table><tr>
  2045. <td class="icon">
  2046. <div class="title">Note</div>
  2047. </td>
  2048. <td class="content">In multi file torrent downloads, the files adjacent forward to the specified files
  2049. are also allocated if they share the same piece.</td>
  2050. </tr></table>
  2051. </div>
  2052. <div class="dlist"><dl>
  2053. <dt class="hdlist1">
  2054. <strong>-Z</strong>, <strong>--force-sequential</strong>[=<em>true</em>|<em>false</em>]
  2055. </dt>
  2056. <dd>
  2057. <p>
  2058. Fetch URIs in the command-line sequentially and download each URI in a
  2059. separate session, like the usual command-line download utilities.
  2060. Default: <em>false</em>
  2061. </p>
  2062. </dd>
  2063. <dt class="hdlist1">
  2064. <strong>--max-overall-download-limit</strong>=SPEED
  2065. </dt>
  2066. <dd>
  2067. <p>
  2068. Set max overall download speed in bytes/sec. <em>0</em> means
  2069. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  2070. limit the download speed per download, use <strong>--max-download-limit</strong>
  2071. option. Default: <em>0</em>
  2072. </p>
  2073. </dd>
  2074. <dt class="hdlist1">
  2075. <strong>--max-download-limit</strong>=SPEED
  2076. </dt>
  2077. <dd>
  2078. <p>
  2079. Set max download speed per each download in bytes/sec. <em>0</em> means
  2080. unrestricted. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K). To
  2081. limit the overall download speed, use <strong>--max-overall-download-limit</strong>
  2082. option. Default: <em>0</em>
  2083. </p>
  2084. </dd>
  2085. <dt class="hdlist1">
  2086. <strong>--no-conf</strong>
  2087. </dt>
  2088. <dd>
  2089. <p>
  2090. Disable loading aria2.conf file.
  2091. </p>
  2092. </dd>
  2093. <dt class="hdlist1">
  2094. <strong>--no-file-allocation-limit</strong>=SIZE
  2095. </dt>
  2096. <dd>
  2097. <p>
  2098. No file allocation is made for files whose size is smaller than SIZE.
  2099. You can append <em>K</em> or <em>M</em>(1K = 1024, 1M = 1024K).
  2100. Default: <em>5M</em>
  2101. </p>
  2102. </dd>
  2103. <dt class="hdlist1">
  2104. <strong>-P</strong>, <strong>--parameterized-uri</strong>[=<em>true</em>|<em>false</em>]
  2105. </dt>
  2106. <dd>
  2107. <p>
  2108. Enable parameterized URI support.
  2109. You can specify set of parts: <em>http://{sv1,sv2,sv3}/foo.iso</em>.
  2110. Also you can specify numeric sequences with step counter:
  2111. <em>http://host/image[000-100:2].img</em>.
  2112. A step counter can be omitted.
  2113. If all URIs do not point to the same file, such as the second example above,
  2114. -Z option is required.
  2115. Default: <em>false</em>
  2116. </p>
  2117. </dd>
  2118. <dt class="hdlist1">
  2119. <strong>-q</strong>, <strong>--quiet</strong>[=<em>true</em>|<em>false</em>]
  2120. </dt>
  2121. <dd>
  2122. <p>
  2123. Make aria2 quiet (no console output).
  2124. Default: <em>false</em>
  2125. </p>
  2126. </dd>
  2127. <dt class="hdlist1">
  2128. <strong>--realtime-chunk-checksum</strong>=<em>true</em>|<em>false</em>
  2129. </dt>
  2130. <dd>
  2131. <p>
  2132. Validate chunk of data by calculating checksum while downloading a file if
  2133. chunk checksums are provided.
  2134. Default: <em>true</em>
  2135. </p>
  2136. </dd>
  2137. <dt class="hdlist1">
  2138. <strong>--remove-control-file</strong>[=<em>true</em>|<em>false</em>]
  2139. </dt>
  2140. <dd>
  2141. <p>
  2142. Remove control file before download. Using with
  2143. <strong>--allow-overwrite</strong>=<em>true</em>, download always starts from
  2144. scratch. This will be useful for users behind proxy server which
  2145. disables resume.
  2146. </p>
  2147. </dd>
  2148. </dl></div>
  2149. <div class="admonitionblock">
  2150. <table><tr>
  2151. <td class="icon">
  2152. <div class="title">Note</div>
  2153. </td>
  2154. <td class="content">For Metalink downloads, -C1 is recommended for proxy server which
  2155. disables resume, in order to avoid establishing unnecessary
  2156. connections.</td>
  2157. </tr></table>
  2158. </div>
  2159. <div class="dlist"><dl>
  2160. <dt class="hdlist1">
  2161. <strong>--save-session</strong>=FILE
  2162. </dt>
  2163. <dd>
  2164. <p>
  2165. Save error/unfinished downloads to FILE on exit. You can pass this
  2166. output file to aria2c with <strong>-i</strong> option on restart. Please note that
  2167. downloads added by <strong>aria2.addTorrent</strong> and <strong>aria2.addMetalink</strong>
  2168. XML-RPC method are not saved.
  2169. </p>
  2170. </dd>
  2171. <dt class="hdlist1">
  2172. <strong>--stop</strong>=SEC
  2173. </dt>
  2174. <dd>
  2175. <p>
  2176. Stop application after SEC seconds has passed.
  2177. If <em>0</em> is given, this feature is disabled.
  2178. Default: <em>0</em>
  2179. </p>
  2180. </dd>
  2181. <dt class="hdlist1">
  2182. <strong>-v</strong>, <strong>--version</strong>
  2183. </dt>
  2184. <dd>
  2185. <p>
  2186. Print the version number, copyright and the configuration information and
  2187. exit.
  2188. </p>
  2189. </dd>
  2190. </dl></div>
  2191. <h3 id="_options_that_take_an_optional_argument">Options That Take An Optional Argument</h3><div style="clear:left"></div>
  2192. <div class="paragraph"><p>The options that have its argument surrounded by square brackets([])
  2193. take an optional argument. Usually omiting the argument is evaluated to <em>true</em>.
  2194. If you use short form of these options(such as <em>-V</em>) and give
  2195. an argument, then the option name and its argument should be concatenated(e.g.
  2196. <em>-Vfalse</em>). If any spaces are inserted between the option name and the argument,
  2197. the argument will be treated as URI and usually this is not what you expect.</p></div>
  2198. <h3 id="_uri_magnet_torrent_file_metalink_file">URI, MAGNET, TORRENT_FILE, METALINK_FILE</h3><div style="clear:left"></div>
  2199. <div class="paragraph"><p>You can specify multiple URIs in command-line. Unless you specify
  2200. <strong>-Z</strong> option, all URIs must point to the same file or downloading will
  2201. fail.</p></div>
  2202. <div class="paragraph"><p>You can specify arbitrary number of BitTorrent Magnet URI. Please note
  2203. that they are always treated as a separate download. Both hex encoded
  2204. 40 characters Info Hash and Base32 encoded 32 characters Info Hash are
  2205. supported. The multiple "tr" parameters are supported. Because
  2206. BitTorrent Magnet URI is likely to contain "&amp;" character, it is highly
  2207. recommended to always quote URI with single(') or double(") quotation.
  2208. It is strongly recommended to enable DHT especially when "tr"
  2209. parameter is missing. See <a href="http://www.bittorrent.org/beps/bep_0009.html">http://www.bittorrent.org/beps/bep_0009.html</a>
  2210. for more details about BitTorrent Magnet URI.</p></div>
  2211. <div class="paragraph"><p>You can also specify arbitrary number of torrent files and Metalink
  2212. documents stored on a local drive. Please note that they are always
  2213. treated as a separate download. Both Metalink4 and Metalink version
  2214. 3.0 are supported.</p></div>
  2215. <div class="paragraph"><p>You can specify both torrent file with -T option and URIs. By doing
  2216. this, you can download a file from both torrent swarm and HTTP(S)/FTP
  2217. server at the same time, while the data from HTTP(S)/FTP are uploaded
  2218. to the torrent swarm. For single file torrents, URI can be a complete
  2219. URI pointing to the resource or if URI ends with /, name in torrent
  2220. file in torrent is added. For multi-file torrents, name and path are
  2221. added to form a URI for each file.</p></div>
  2222. <div class="admonitionblock">
  2223. <table><tr>
  2224. <td class="icon">
  2225. <div class="title">Note</div>
  2226. </td>
  2227. <td class="content">Make sure that URI is quoted with single(') or double(") quotation if it
  2228. contains "&amp;" or any characters that have special meaning in shell.</td>
  2229. </tr></table>
  2230. </div>
  2231. <h3 id="_resuming_download">Resuming Download</h3><div style="clear:left"></div>
  2232. <div class="paragraph"><p>Usually, you can resume transfer by just issuing same command(aria2c
  2233. URI) if the previous transfer is made by aria2.</p></div>
  2234. <div class="paragraph"><p>If the previous transfer is made by a browser or wget like sequential
  2235. download manager, then use -c option to continue the transfer(aria2c
  2236. <strong>-c</strong> URI).</p></div>
  2237. </div>
  2238. <h2 id="_exit_status">EXIT STATUS</h2>
  2239. <div class="sectionbody">
  2240. <div class="paragraph"><p>Because aria2 can handle multiple downloads at once, it encounters
  2241. lots of errors in a session. aria2 returns the following exit status
  2242. based on the last error encountered.</p></div>
  2243. <div class="dlist"><dl>
  2244. <dt class="hdlist1">
  2245. <strong>0</strong>
  2246. </dt>
  2247. <dd>
  2248. <p>
  2249. If all downloads are successful.
  2250. </p>
  2251. </dd>
  2252. <dt class="hdlist1">
  2253. <strong>1</strong>
  2254. </dt>
  2255. <dd>
  2256. <p>
  2257. If an unknown error occurs.
  2258. </p>
  2259. </dd>
  2260. <dt class="hdlist1">
  2261. <strong>2</strong>
  2262. </dt>
  2263. <dd>
  2264. <p>
  2265. If time out occurs.
  2266. </p>
  2267. </dd>
  2268. <dt class="hdlist1">
  2269. <strong>3</strong>
  2270. </dt>
  2271. <dd>
  2272. <p>
  2273. If a resource is not found.
  2274. </p>
  2275. </dd>
  2276. <dt class="hdlist1">
  2277. <strong>4</strong>
  2278. </dt>
  2279. <dd>
  2280. <p>
  2281. If aria2 sees the specfied number of "resource not found" error.
  2282. See <strong>--max-file-not-found</strong> option).
  2283. </p>
  2284. </dd>
  2285. <dt class="hdlist1">
  2286. <strong>5</strong>
  2287. </dt>
  2288. <dd>
  2289. <p>
  2290. If a download aborts because download speed is too slow.
  2291. See <strong>--lowest-speed-limit</strong> option)
  2292. </p>
  2293. </dd>
  2294. <dt class="hdlist1">
  2295. <strong>6</strong>
  2296. </dt>
  2297. <dd>
  2298. <p>
  2299. If network problem occurs.
  2300. </p>
  2301. </dd>
  2302. <dt class="hdlist1">
  2303. <strong>7</strong>
  2304. </dt>
  2305. <dd>
  2306. <p>
  2307. If there are unfinished downloads. This error is only reported if
  2308. all finished downloads are successful and there are unfinished
  2309. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  2310. or sending TERM or INT signal.
  2311. </p>
  2312. </dd>
  2313. <dt class="hdlist1">
  2314. <strong>8</strong>
  2315. </dt>
  2316. <dd>
  2317. <p>
  2318. If server does not support resume when resume is required to
  2319. complete download.
  2320. </p>
  2321. </dd>
  2322. </dl></div>
  2323. <div class="admonitionblock">
  2324. <table><tr>
  2325. <td class="icon">
  2326. <div class="title">Note</div>
  2327. </td>
  2328. <td class="content">An error occurred in a finished download will not be reported
  2329. as exit status.</td>
  2330. </tr></table>
  2331. </div>
  2332. </div>
  2333. <h2 id="_environment">ENVIRONMENT</h2>
  2334. <div class="sectionbody">
  2335. <div class="paragraph"><p>aria2 recognizes the following environment variables.</p></div>
  2336. <div class="dlist"><dl>
  2337. <dt class="hdlist1">
  2338. http_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2339. </dt>
  2340. <dd>
  2341. <p>
  2342. Specify proxy server for use in HTTP.
  2343. Overrides http-proxy value in configuration file.
  2344. The command-line option <strong>--http-proxy</strong> overrides this value.
  2345. </p>
  2346. </dd>
  2347. <dt class="hdlist1">
  2348. https_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2349. </dt>
  2350. <dd>
  2351. <p>
  2352. Specify proxy server for use in HTTPS.
  2353. Overrides https-proxy value in configuration file.
  2354. The command-line option <strong>--https-proxy</strong> overrides this value.
  2355. </p>
  2356. </dd>
  2357. <dt class="hdlist1">
  2358. ftp_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2359. </dt>
  2360. <dd>
  2361. <p>
  2362. Specify proxy server for use in FTP.
  2363. Overrides ftp-proxy value in configuration file.
  2364. The command-line option <strong>--ftp-proxy</strong> overrides this value.
  2365. </p>
  2366. </dd>
  2367. <dt class="hdlist1">
  2368. all_proxy [<a href="http://][USER:PASSWORD@]HOST[:PORT">http://][USER:PASSWORD@]HOST[:PORT</a>]
  2369. </dt>
  2370. <dd>
  2371. <p>
  2372. Specify proxy server for use if no protocol-specific proxy is specified.
  2373. Overrides all-proxy value in configuration file.
  2374. The command-line option <strong>--all-proxy</strong> overrides this value.
  2375. </p>
  2376. </dd>
  2377. <dt class="hdlist1">
  2378. no_proxy [DOMAIN,&#8230;]
  2379. </dt>
  2380. <dd>
  2381. <p>
  2382. Specify comma-separated hostname, domains and network address with
  2383. or without CIDR block to which proxy should not be used. Overrides
  2384. no-proxy value in configuration file. The command-line option
  2385. <strong>--no-proxy</strong> overrides this value.
  2386. </p>
  2387. </dd>
  2388. </dl></div>
  2389. </div>
  2390. <h2 id="_files">FILES</h2>
  2391. <div class="sectionbody">
  2392. <h3 id="_aria2_conf">aria2.conf</h3><div style="clear:left"></div>
  2393. <div class="paragraph"><p>By default, aria2 parses <em>$HOME/.aria2/aria2.conf</em> as a configuraiton
  2394. file. You can specify the path to configuration file using
  2395. <strong>--conf-path</strong> option. If you don&#8217;t want to use the configuraitonf
  2396. file, use <strong>--no-conf</strong> option.</p></div>
  2397. <div class="paragraph"><p>The configuration file is a text file and has 1 option per each
  2398. line. In each line, you can specify name-value pair in the format:
  2399. NAME=VALUE, where name is the long command-line option name without
  2400. "--" prefix. You can use same syntax for the command-line option. The
  2401. lines beginning "#" are treated as comments.</p></div>
  2402. <div class="listingblock">
  2403. <div class="content">
  2404. <pre><tt># sample configuration file for aria2c
  2405. listen-port=60000
  2406. dht-listen-port=60000
  2407. seed-ratio=1.0
  2408. max-upload-limit=50K
  2409. ftp-pasv=true</tt></pre>
  2410. </div></div>
  2411. <h3 id="_dht_dat">dht.dat</h3><div style="clear:left"></div>
  2412. <div class="paragraph"><p>By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.</p></div>
  2413. <h3 id="_control_file">Control File</h3><div style="clear:left"></div>
  2414. <div class="paragraph"><p>aria2 uses a control file to track the progress of a download. A
  2415. control file is placed in the same directory as the downloading file
  2416. and its filename is the filename of downloading file with ".aria2"
  2417. appended. For example, if you are downloading file.zip, then the
  2418. control file should be file.zip.aria2. (There is a exception for this
  2419. naming convention. If you are downloading a multi torrent, its
  2420. control file is the "top directory" name of the torrent with ".aria2"
  2421. appended. The "top directory" name is a value of "name" key in "info"
  2422. directory in a torrent file.)</p></div>
  2423. <div class="paragraph"><p>Usually a control file is deleted once download completed. If aria2
  2424. decides that download cannot be resumed(for example, when downloading
  2425. a file from a HTTP server which doesn&#8217;t support resume), a control
  2426. file is not created.</p></div>
  2427. <div class="paragraph"><p>Normally if you lose a control file, you cannot resume download. But
  2428. if you have a torrent or metalink with chunk checksums for the file,
  2429. you can resume the download without a control file by giving -V option
  2430. to aria2c in command-line.</p></div>
  2431. <h3 id="_input_file">Input File</h3><div style="clear:left"></div>
  2432. <div class="paragraph"><p>The input file can contain a list of URIs for aria2 to download. You
  2433. can specify multiple URIs for a single entity: separate URIs on a
  2434. single line using the TAB character.</p></div>
  2435. <div class="paragraph"><p>Each line is treated as if it is provided in command-line argument.
  2436. Therefore they are affected by <strong>-Z</strong> and <strong>-P</strong> options.</p></div>
  2437. <div class="paragraph"><p>Lines starting with "#" are treated as comments and skipped.</p></div>
  2438. <div class="paragraph"><p>Additionally, the following options can be specified after each line
  2439. of URIs. These optional lines must start with white space(s).</p></div>
  2440. <div class="ulist"><ul>
  2441. <li>
  2442. <p>
  2443. dir
  2444. </p>
  2445. </li>
  2446. <li>
  2447. <p>
  2448. check-integrity
  2449. </p>
  2450. </li>
  2451. <li>
  2452. <p>
  2453. continue
  2454. </p>
  2455. </li>
  2456. <li>
  2457. <p>
  2458. all-proxy
  2459. </p>
  2460. </li>
  2461. <li>
  2462. <p>
  2463. all-proxy-user
  2464. </p>
  2465. </li>
  2466. <li>
  2467. <p>
  2468. all-proxy-passwd
  2469. </p>
  2470. </li>
  2471. <li>
  2472. <p>
  2473. connect-timeout
  2474. </p>
  2475. </li>
  2476. <li>
  2477. <p>
  2478. dry-run
  2479. </p>
  2480. </li>
  2481. <li>
  2482. <p>
  2483. lowest-speed-limit
  2484. </p>
  2485. </li>
  2486. <li>
  2487. <p>
  2488. max-file-not-found
  2489. </p>
  2490. </li>
  2491. <li>
  2492. <p>
  2493. max-tries
  2494. </p>
  2495. </li>
  2496. <li>
  2497. <p>
  2498. no-proxy
  2499. </p>
  2500. </li>
  2501. <li>
  2502. <p>
  2503. out
  2504. </p>
  2505. </li>
  2506. <li>
  2507. <p>
  2508. proxy-method
  2509. </p>
  2510. </li>
  2511. <li>
  2512. <p>
  2513. remote-time
  2514. </p>
  2515. </li>
  2516. <li>
  2517. <p>
  2518. split
  2519. </p>
  2520. </li>
  2521. <li>
  2522. <p>
  2523. timeout
  2524. </p>
  2525. </li>
  2526. <li>
  2527. <p>
  2528. http-auth-challenge
  2529. </p>
  2530. </li>
  2531. <li>
  2532. <p>
  2533. http-no-cache
  2534. </p>
  2535. </li>
  2536. <li>
  2537. <p>
  2538. http-user
  2539. </p>
  2540. </li>
  2541. <li>
  2542. <p>
  2543. http-passwd
  2544. </p>
  2545. </li>
  2546. <li>
  2547. <p>
  2548. http-proxy
  2549. </p>
  2550. </li>
  2551. <li>
  2552. <p>
  2553. http-proxy-user
  2554. </p>
  2555. </li>
  2556. <li>
  2557. <p>
  2558. http-proxy-passwd
  2559. </p>
  2560. </li>
  2561. <li>
  2562. <p>
  2563. https-proxy
  2564. </p>
  2565. </li>
  2566. <li>
  2567. <p>
  2568. https-proxy-user
  2569. </p>
  2570. </li>
  2571. <li>
  2572. <p>
  2573. https-proxy-passwd
  2574. </p>
  2575. </li>
  2576. <li>
  2577. <p>
  2578. referer
  2579. </p>
  2580. </li>
  2581. <li>
  2582. <p>
  2583. enable-http-keep-alive
  2584. </p>
  2585. </li>
  2586. <li>
  2587. <p>
  2588. enable-http-pipelining
  2589. </p>
  2590. </li>
  2591. <li>
  2592. <p>
  2593. header
  2594. </p>
  2595. </li>
  2596. <li>
  2597. <p>
  2598. use-head
  2599. </p>
  2600. </li>
  2601. <li>
  2602. <p>
  2603. user-agent
  2604. </p>
  2605. </li>
  2606. <li>
  2607. <p>
  2608. ftp-user
  2609. </p>
  2610. </li>
  2611. <li>
  2612. <p>
  2613. ftp-passwd
  2614. </p>
  2615. </li>
  2616. <li>
  2617. <p>
  2618. ftp-pasv
  2619. </p>
  2620. </li>
  2621. <li>
  2622. <p>
  2623. ftp-proxy
  2624. </p>
  2625. </li>
  2626. <li>
  2627. <p>
  2628. ftp-proxy-user
  2629. </p>
  2630. </li>
  2631. <li>
  2632. <p>
  2633. ftp-proxy-passwd
  2634. </p>
  2635. </li>
  2636. <li>
  2637. <p>
  2638. ftp-type
  2639. </p>
  2640. </li>
  2641. <li>
  2642. <p>
  2643. ftp-reuse-connection
  2644. </p>
  2645. </li>
  2646. <li>
  2647. <p>
  2648. no-netrc
  2649. </p>
  2650. </li>
  2651. <li>
  2652. <p>
  2653. reuse-uri
  2654. </p>
  2655. </li>
  2656. <li>
  2657. <p>
  2658. select-file
  2659. </p>
  2660. </li>
  2661. <li>
  2662. <p>
  2663. bt-enable-lpd
  2664. </p>
  2665. </li>
  2666. <li>
  2667. <p>
  2668. bt-external-ip
  2669. </p>
  2670. </li>
  2671. <li>
  2672. <p>
  2673. bt-hash-check-seed
  2674. </p>
  2675. </li>
  2676. <li>
  2677. <p>
  2678. bt-max-open-files
  2679. </p>
  2680. </li>
  2681. <li>
  2682. <p>
  2683. bt-max-peers
  2684. </p>
  2685. </li>
  2686. <li>
  2687. <p>
  2688. bt-metadata-only
  2689. </p>
  2690. </li>
  2691. <li>
  2692. <p>
  2693. bt-min-crypto-level
  2694. </p>
  2695. </li>
  2696. <li>
  2697. <p>
  2698. bt-prioritize-piece
  2699. </p>
  2700. </li>
  2701. <li>
  2702. <p>
  2703. bt-require-crypto
  2704. </p>
  2705. </li>
  2706. <li>
  2707. <p>
  2708. bt-request-peer-speed-limit
  2709. </p>
  2710. </li>
  2711. <li>
  2712. <p>
  2713. bt-save-metadata
  2714. </p>
  2715. </li>
  2716. <li>
  2717. <p>
  2718. bt-seed-unverified
  2719. </p>
  2720. </li>
  2721. <li>
  2722. <p>
  2723. bt-stop-timeout
  2724. </p>
  2725. </li>
  2726. <li>
  2727. <p>
  2728. bt-tracker-interval
  2729. </p>
  2730. </li>
  2731. <li>
  2732. <p>
  2733. bt-tracker-timeout
  2734. </p>
  2735. </li>
  2736. <li>
  2737. <p>
  2738. bt-tracker-connect-timeout
  2739. </p>
  2740. </li>
  2741. <li>
  2742. <p>
  2743. enable-peer-exchange
  2744. </p>
  2745. </li>
  2746. <li>
  2747. <p>
  2748. follow-torrent
  2749. </p>
  2750. </li>
  2751. <li>
  2752. <p>
  2753. index-out
  2754. </p>
  2755. </li>
  2756. <li>
  2757. <p>
  2758. max-upload-limit
  2759. </p>
  2760. </li>
  2761. <li>
  2762. <p>
  2763. seed-ratio
  2764. </p>
  2765. </li>
  2766. <li>
  2767. <p>
  2768. seed-time
  2769. </p>
  2770. </li>
  2771. <li>
  2772. <p>
  2773. follow-metalink
  2774. </p>
  2775. </li>
  2776. <li>
  2777. <p>
  2778. metalink-servers
  2779. </p>
  2780. </li>
  2781. <li>
  2782. <p>
  2783. metalink-language
  2784. </p>
  2785. </li>
  2786. <li>
  2787. <p>
  2788. metalink-location
  2789. </p>
  2790. </li>
  2791. <li>
  2792. <p>
  2793. metalink-os
  2794. </p>
  2795. </li>
  2796. <li>
  2797. <p>
  2798. metalink-version
  2799. </p>
  2800. </li>
  2801. <li>
  2802. <p>
  2803. metalink-preferred-protocol
  2804. </p>
  2805. </li>
  2806. <li>
  2807. <p>
  2808. metalink-enable-unique-protocol
  2809. </p>
  2810. </li>
  2811. <li>
  2812. <p>
  2813. allow-overwrite
  2814. </p>
  2815. </li>
  2816. <li>
  2817. <p>
  2818. allow-piece-length-change
  2819. </p>
  2820. </li>
  2821. <li>
  2822. <p>
  2823. async-dns
  2824. </p>
  2825. </li>
  2826. <li>
  2827. <p>
  2828. auto-file-renaming
  2829. </p>
  2830. </li>
  2831. <li>
  2832. <p>
  2833. file-allocation
  2834. </p>
  2835. </li>
  2836. <li>
  2837. <p>
  2838. max-download-limit
  2839. </p>
  2840. </li>
  2841. <li>
  2842. <p>
  2843. no-file-allocation-limit
  2844. </p>
  2845. </li>
  2846. <li>
  2847. <p>
  2848. parameterized-uri
  2849. </p>
  2850. </li>
  2851. <li>
  2852. <p>
  2853. realtime-chunk-checksum
  2854. </p>
  2855. </li>
  2856. <li>
  2857. <p>
  2858. remove-control-file
  2859. </p>
  2860. </li>
  2861. <li>
  2862. <p>
  2863. always-resume
  2864. </p>
  2865. </li>
  2866. <li>
  2867. <p>
  2868. max-resume-failure-tries
  2869. </p>
  2870. </li>
  2871. <li>
  2872. <p>
  2873. http-accept-gzip
  2874. </p>
  2875. </li>
  2876. </ul></div>
  2877. <div class="paragraph"><p>These options have exactly same meaning of the ones in the
  2878. command-line options, but it just applies to the URIs it belongs to.</p></div>
  2879. <div class="paragraph"><p>For example, the content of uri.txt is</p></div>
  2880. <div class="listingblock">
  2881. <div class="content">
  2882. <pre><tt>http://server/file.iso http://mirror/file.iso
  2883. dir=/iso_images
  2884. out=file.img
  2885. http://foo/bar</tt></pre>
  2886. </div></div>
  2887. <div class="paragraph"><p>If aria2 is executed with <strong>-i</strong> uri.txt <strong>-d</strong> /tmp options, then
  2888. <em>file.iso</em> is saved as <em>/iso_images/file.img</em> and it is downloaded
  2889. from http://server/file.iso and http://mirror/file.iso. The file
  2890. <em>bar</em> is downloaded from http://foo/bar and saved as <em>/tmp/bar</em>.</p></div>
  2891. <div class="paragraph"><p>In some cases, <strong>out</strong> parameter has no effect. See note of <strong>--out</strong>
  2892. option for the restrictions.</p></div>
  2893. <h3 id="_server_performance_profile">Server Performance Profile</h3><div style="clear:left"></div>
  2894. <div class="paragraph"><p>This section describes the format of server performance profile. The
  2895. file is plain text and each line has several NAME=VALUE pair,
  2896. delimited by comma. Currently following NAMEs are recognized:</p></div>
  2897. <div class="dlist"><dl>
  2898. <dt class="hdlist1">
  2899. host
  2900. </dt>
  2901. <dd>
  2902. <p>
  2903. Hostname of the server. Required.
  2904. </p>
  2905. </dd>
  2906. <dt class="hdlist1">
  2907. protocol
  2908. </dt>
  2909. <dd>
  2910. <p>
  2911. Protocol for this profile, such as ftp, http. Required.
  2912. </p>
  2913. </dd>
  2914. <dt class="hdlist1">
  2915. dl_speed
  2916. </dt>
  2917. <dd>
  2918. <p>
  2919. The average download speed observed in the previous download in
  2920. bytes per sec. Required.
  2921. </p>
  2922. </dd>
  2923. <dt class="hdlist1">
  2924. sc_avg_speed
  2925. </dt>
  2926. <dd>
  2927. <p>
  2928. The average download speed observed in the previous download in
  2929. bytes per sec. This value is only updated if the download is done in
  2930. single connection environment and only used by
  2931. AdaptiveURISelector. Optional.
  2932. </p>
  2933. </dd>
  2934. <dt class="hdlist1">
  2935. mc_avg_speed
  2936. </dt>
  2937. <dd>
  2938. <p>
  2939. The average download speed observed in the previous download in
  2940. bytes per sec. This value is only updated if the download is done in
  2941. multi connection environment and only used by
  2942. AdaptiveURISelector. Optional.
  2943. </p>
  2944. </dd>
  2945. <dt class="hdlist1">
  2946. counter
  2947. </dt>
  2948. <dd>
  2949. <p>
  2950. How many times the server is used. Currently this value is only used
  2951. by AdaptiveURISelector. Optional.
  2952. </p>
  2953. </dd>
  2954. <dt class="hdlist1">
  2955. last_updated
  2956. </dt>
  2957. <dd>
  2958. <p>
  2959. Last contact time in GMT with this server, specified in the seconds
  2960. since the Epoch(00:00:00 on January 1, 1970, UTC). Required.
  2961. </p>
  2962. </dd>
  2963. <dt class="hdlist1">
  2964. status
  2965. </dt>
  2966. <dd>
  2967. <p>
  2968. ERROR is set when server cannot be reached or out-of-service or
  2969. timeout occurred. Otherwise, OK is set.
  2970. </p>
  2971. </dd>
  2972. </dl></div>
  2973. <div class="paragraph"><p>Those fields must exist in one line. The order of the fields is not
  2974. significant. You can put pairs other than the above; they are simply
  2975. ignored.</p></div>
  2976. <div class="paragraph"><p>An example follows:</p></div>
  2977. <div class="listingblock">
  2978. <div class="content">
  2979. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  2980. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  2981. </div></div>
  2982. </div>
  2983. <h2 id="_xml_rpc_interface">XML-RPC INTERFACE</h2>
  2984. <div class="sectionbody">
  2985. <h3 id="_terminology">Terminology</h3><div style="clear:left"></div>
  2986. <div class="dlist"><dl>
  2987. <dt class="hdlist1">
  2988. GID
  2989. </dt>
  2990. <dd>
  2991. <p>
  2992. GID(or gid) is the key to manage each download. Each download has an
  2993. unique GID. Currently GID looks like an integer, but don&#8217;t treat it
  2994. as integer because it may be changed to another type in the future
  2995. release. Please note that GID is session local and not persisted
  2996. when aria2 exits.
  2997. </p>
  2998. </dd>
  2999. </dl></div>
  3000. <h3 id="_methods">Methods</h3><div style="clear:left"></div>
  3001. <div class="paragraph"><p><strong>aria2.addUri</strong> <em>uris[, options[, position]]</em></p></div>
  3002. <div class="paragraph"><p>This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. <em>uris</em> is of
  3003. type array and its element is URI which is of type string. For
  3004. BitTorrent Magnet URI, <em>uris</em> must have only one element and it should
  3005. be BitTorrent Magnet URI. URIs in <em>uris</em> must point to the same
  3006. file. For example, a file chunkybaconlinux.iso is hosted in 2
  3007. locations: <a href="http://server/chunkybaconlinux.iso">http://server/chunkybaconlinux.iso</a> and
  3008. <a href="http://mirror/chunkybaconlinux.iso">http://mirror/chunkybaconlinux.iso</a>. You can download this iso image
  3009. using 2 URIs by issuing
  3010. aria2.addUri([<em>http://server/chunkybaconlinux.iso</em>,
  3011. <em>http://mirror/chunkybaconlinux.iso</em>]). Imagine there is an another
  3012. file URI, say, <a href="http://mirror2/chunkydonutslinux.iso">http://mirror2/chunkydonutslinux.iso</a>, which is
  3013. different iso image. You cannot mix this URI with previous URIs in
  3014. one aria2.addUri command. If you do, aria2 does not complain but
  3015. download may fail. <em>options</em> is of type struct and its members are a
  3016. pair of option name and value. See <strong>Options</strong> below for more details.
  3017. If <em>position</em> is given as an integer starting from 0, the new download
  3018. is inserted at <em>position</em> in the waiting queue. If <em>position</em> is not
  3019. given or <em>position</em> is larger than the size of the queue, it is
  3020. appended at the end of the queue. This method returns GID of
  3021. registered download.</p></div>
  3022. <div class="paragraph"><p><strong>aria2.addTorrent</strong> <em>torrent[, uris[, options[, position]]]</em></p></div>
  3023. <div class="paragraph"><p>This method adds BitTorrent download by uploading .torrent file. If
  3024. you want to add BitTorrent Magnet URI, use <strong>aria2.addUri</strong> method
  3025. instead. <em>torrent</em> is of type base64 which contains Base64-encoded
  3026. .torrent file. <em>uris</em> is of type array and its element is URI which
  3027. is of type string. <em>uris</em> is used for Web-seeding. For single file
  3028. torrents, URI can be a complete URI pointing to the resource or if URI
  3029. ends with /, name in torrent file is added. For multi-file torrents,
  3030. name and path in torrent are added to form a URI for each file.
  3031. <em>options</em> is of type struct and its members are a pair of option name
  3032. and value. See <strong>Options</strong> below for more details. If <em>position</em> is
  3033. given as an integer starting from 0, the new download is inserted at
  3034. <em>position</em> in the waiting queue. If <em>position</em> is not given or
  3035. <em>position</em> is larger than the size of the queue, it is appended at the
  3036. end of the queue. This method returns GID of registered download.
  3037. Please note that the downloads added by this method are not saved by
  3038. <strong>--save-session</strong>.</p></div>
  3039. <div class="paragraph"><p><strong>aria2.addMetalink</strong> <em>metalink[, options[, position]]</em></p></div>
  3040. <div class="paragraph"><p>This method adds Metalink download by uploading .metalink file.
  3041. <em>metalink</em> is of type base64 which contains Base64-encoded .metalink
  3042. file. <em>options</em> is of type struct and its members are a pair of
  3043. option name and value. See <strong>Options</strong> below for more details. If
  3044. <em>position</em> is given as an integer starting from 0, the new download is
  3045. inserted at <em>position</em> in the waiting queue. If <em>position</em> is not
  3046. given or <em>position</em> is larger than the size of the queue, it is
  3047. appended at the end of the queue. This method returns array of GID of
  3048. registered download. Please note that the downloads added by this
  3049. method are not saved by <strong>--save-session</strong>.</p></div>
  3050. <div class="paragraph"><p><strong>aria2.remove</strong> <em>gid</em></p></div>
  3051. <div class="paragraph"><p>This method removes the download denoted by <em>gid</em>. <em>gid</em> is of type
  3052. string. If specified download is in progress, it is stopped at
  3053. first. The status of removed download becomes "removed". This method
  3054. returns GID of removed download.</p></div>
  3055. <div class="paragraph"><p><strong>aria2.forceRemove</strong> <em>gid</em></p></div>
  3056. <div class="paragraph"><p>This method removes the download denoted by <em>gid</em>. This method
  3057. behaves just like <strong>aria2.remove</strong> except that this method removes
  3058. download without any action which takes time such as contacting
  3059. BitTorrent tracker.</p></div>
  3060. <div class="paragraph"><p><strong>aria2.pause</strong> <em>gid</em></p></div>
  3061. <div class="paragraph"><p>This method pauses the download denoted by <em>gid</em>. <em>gid</em> is of type
  3062. string. The status of paused download becomes "paused". If the
  3063. download is active, the download is placed on the first position of
  3064. waiting queue. As long as the status is "paused", the download is not
  3065. started. To change status to "waiting", use <strong>aria2.unpause</strong> method.
  3066. This method returns GID of paused download.</p></div>
  3067. <div class="paragraph"><p><strong>aria2.pauseAll</strong></p></div>
  3068. <div class="paragraph"><p>This method is equal to calling <strong>aria2.pause</strong> for every active/waiting
  3069. download. This methods returns "OK" for success.</p></div>
  3070. <div class="paragraph"><p><strong>aria2.forcePause</strong> <em>pid</em></p></div>
  3071. <div class="paragraph"><p>This method pauses the download denoted by <em>gid</em>. This method
  3072. behaves just like <strong>aria2.pause</strong> except that this method pauses
  3073. download without any action which takes time such as contacting
  3074. BitTorrent tracker.</p></div>
  3075. <div class="paragraph"><p><strong>aria2.forcePauseAll</strong></p></div>
  3076. <div class="paragraph"><p>This method is equal to calling <strong>aria2.forcePause</strong> for every
  3077. active/waiting download. This methods returns "OK" for success.</p></div>
  3078. <div class="paragraph"><p><strong>aria2.unpause</strong> <em>gid</em></p></div>
  3079. <div class="paragraph"><p>This method changes the status of the download denoted by <em>gid</em> from
  3080. "paused" to "waiting". This makes the download eligible to restart.
  3081. <em>gid</em> is of type string. This method returns GID of unpaused
  3082. download.</p></div>
  3083. <div class="paragraph"><p><strong>aria2.unpauseAll</strong></p></div>
  3084. <div class="paragraph"><p>This method is equal to calling <strong>aria2.unpause</strong> for every active/waiting
  3085. download. This methods returns "OK" for success.</p></div>
  3086. <div class="paragraph"><p><strong>aria2.tellStatus</strong> <em>gid</em></p></div>
  3087. <div class="paragraph"><p>This method returns download progress of the download denoted by
  3088. <em>gid</em>. <em>gid</em> is of type string. The response is of type struct and it
  3089. contains following keys. The value type is string.</p></div>
  3090. <div class="dlist"><dl>
  3091. <dt class="hdlist1">
  3092. gid
  3093. </dt>
  3094. <dd>
  3095. <p>
  3096. GID of this download.
  3097. </p>
  3098. </dd>
  3099. <dt class="hdlist1">
  3100. status
  3101. </dt>
  3102. <dd>
  3103. <p>
  3104. "active" for currently downloading/seeding entry. "waiting" for the
  3105. entry in the queue; download is not started. "paused" for the
  3106. paused entry. "error" for the stopped download because of
  3107. error. "complete" for the stopped and completed download. "removed"
  3108. for the download removed by user.
  3109. </p>
  3110. </dd>
  3111. <dt class="hdlist1">
  3112. totalLength
  3113. </dt>
  3114. <dd>
  3115. <p>
  3116. Total length of this download in bytes.
  3117. </p>
  3118. </dd>
  3119. <dt class="hdlist1">
  3120. completedLength
  3121. </dt>
  3122. <dd>
  3123. <p>
  3124. Completed length of this download in bytes.
  3125. </p>
  3126. </dd>
  3127. <dt class="hdlist1">
  3128. uploadLength
  3129. </dt>
  3130. <dd>
  3131. <p>
  3132. Uploaded length of this download in bytes.
  3133. </p>
  3134. </dd>
  3135. <dt class="hdlist1">
  3136. bitfield
  3137. </dt>
  3138. <dd>
  3139. <p>
  3140. Hexadecimal representation of the download progress. The highest bit
  3141. corresponds to piece index 0. The set bits indicate the piece is
  3142. available and unset bits indicate the piece is missing. The spare
  3143. bits at the end are set to zero. When download has not started yet,
  3144. this key will not be included in the response.
  3145. </p>
  3146. </dd>
  3147. <dt class="hdlist1">
  3148. downloadSpeed
  3149. </dt>
  3150. <dd>
  3151. <p>
  3152. Download speed of this download measured in bytes/sec.
  3153. </p>
  3154. </dd>
  3155. <dt class="hdlist1">
  3156. uploadSpeed
  3157. </dt>
  3158. <dd>
  3159. <p>
  3160. Upload speed of this download measured in bytes/sec.
  3161. </p>
  3162. </dd>
  3163. <dt class="hdlist1">
  3164. infoHash
  3165. </dt>
  3166. <dd>
  3167. <p>
  3168. InfoHash. BitTorrent only.
  3169. </p>
  3170. </dd>
  3171. <dt class="hdlist1">
  3172. numSeeders
  3173. </dt>
  3174. <dd>
  3175. <p>
  3176. The number of seeders the client has connected to. BitTorrent only.
  3177. </p>
  3178. </dd>
  3179. <dt class="hdlist1">
  3180. pieceLength
  3181. </dt>
  3182. <dd>
  3183. <p>
  3184. Piece length in bytes.
  3185. </p>
  3186. </dd>
  3187. <dt class="hdlist1">
  3188. numPieces
  3189. </dt>
  3190. <dd>
  3191. <p>
  3192. The number of pieces.
  3193. </p>
  3194. </dd>
  3195. <dt class="hdlist1">
  3196. connections
  3197. </dt>
  3198. <dd>
  3199. <p>
  3200. The number of peers/servers the client has connected to.
  3201. </p>
  3202. </dd>
  3203. <dt class="hdlist1">
  3204. errorCode
  3205. </dt>
  3206. <dd>
  3207. <p>
  3208. The last error code occurred in this download. The value is of type
  3209. string. The error codes are defined in EXIT STATUS section. This
  3210. value is only available for stopped/completed downloads.
  3211. </p>
  3212. </dd>
  3213. <dt class="hdlist1">
  3214. followedBy
  3215. </dt>
  3216. <dd>
  3217. <p>
  3218. List of GIDs which are generated by the consequence of this
  3219. download. For example, when aria2 downloaded Metalink file, it
  3220. generates downloads described in it(see <strong>--follow-metalink</strong>
  3221. option). This value is useful to track these auto generated
  3222. downloads. If there is no such downloads, this key will not
  3223. be included in the response.
  3224. </p>
  3225. </dd>
  3226. <dt class="hdlist1">
  3227. belongsTo
  3228. </dt>
  3229. <dd>
  3230. <p>
  3231. GID of a parent download. Some downloads are a part of another
  3232. download. For example, if a file in Metalink has BitTorrent
  3233. resource, the download of .torrent is a part of that file. If this
  3234. download has no parent, this key will not be included in the
  3235. response.
  3236. </p>
  3237. </dd>
  3238. <dt class="hdlist1">
  3239. dir
  3240. </dt>
  3241. <dd>
  3242. <p>
  3243. Directory to save files. This key is not available for stopped
  3244. downloads.
  3245. </p>
  3246. </dd>
  3247. <dt class="hdlist1">
  3248. files
  3249. </dt>
  3250. <dd>
  3251. <p>
  3252. Returns the list of files. The element of list is the same struct
  3253. used in <strong>aria2.getFiles</strong> method.
  3254. </p>
  3255. </dd>
  3256. <dt class="hdlist1">
  3257. bittorrent
  3258. </dt>
  3259. <dd>
  3260. <p>
  3261. Struct which contains information retrieved from .torrent
  3262. file. BitTorrent only. It contains following keys.
  3263. </p>
  3264. <div class="dlist"><dl>
  3265. <dt class="hdlist1">
  3266. announceList
  3267. </dt>
  3268. <dd>
  3269. <p>
  3270. List of lists of announce URI. If .torrent file contains announce
  3271. and no announce-list, announce is converted to announce-list
  3272. format.
  3273. </p>
  3274. </dd>
  3275. <dt class="hdlist1">
  3276. comment
  3277. </dt>
  3278. <dd>
  3279. <p>
  3280. The comment for the torrent. comment.utf-8 is used if available.
  3281. </p>
  3282. </dd>
  3283. <dt class="hdlist1">
  3284. creationDate
  3285. </dt>
  3286. <dd>
  3287. <p>
  3288. The creation time of the torrent. The value is an integer since
  3289. the Epoch, measured in seconds.
  3290. </p>
  3291. </dd>
  3292. <dt class="hdlist1">
  3293. mode
  3294. </dt>
  3295. <dd>
  3296. <p>
  3297. File mode of the torrent. The value is either <em>single</em> or <em>multi</em>.
  3298. </p>
  3299. </dd>
  3300. <dt class="hdlist1">
  3301. info
  3302. </dt>
  3303. <dd>
  3304. <p>
  3305. Struct which contains data from Info dictionary. It contains
  3306. following keys.
  3307. </p>
  3308. <div class="dlist"><dl>
  3309. <dt class="hdlist1">
  3310. name
  3311. </dt>
  3312. <dd>
  3313. <p>
  3314. name in info dictionary. name.utf-8 is used if available.
  3315. </p>
  3316. </dd>
  3317. </dl></div>
  3318. </dd>
  3319. </dl></div>
  3320. </dd>
  3321. </dl></div>
  3322. <div class="paragraph"><p><strong>aria2.getUris</strong> <em>gid</em></p></div>
  3323. <div class="paragraph"><p>This method returns URIs used in the download denoted by <em>gid</em>. <em>gid</em>
  3324. is of type string. The response is of type array and its element is of
  3325. type struct and it contains following keys. The value type is string.</p></div>
  3326. <div class="dlist"><dl>
  3327. <dt class="hdlist1">
  3328. uri
  3329. </dt>
  3330. <dd>
  3331. <p>
  3332. URI
  3333. </p>
  3334. </dd>
  3335. <dt class="hdlist1">
  3336. status
  3337. </dt>
  3338. <dd>
  3339. <p>
  3340. <em>used</em> if the URI is already used. <em>waiting</em> if the URI is waiting
  3341. in the queue.
  3342. </p>
  3343. </dd>
  3344. </dl></div>
  3345. <div class="paragraph"><p><strong>aria2.getFiles</strong> <em>gid</em></p></div>
  3346. <div class="paragraph"><p>This method returns file list of the download denoted by <em>gid</em>. <em>gid</em>
  3347. is of type string. The response is of type array and its element is of
  3348. type struct and it contains following keys. The value type is string.</p></div>
  3349. <div class="dlist"><dl>
  3350. <dt class="hdlist1">
  3351. index
  3352. </dt>
  3353. <dd>
  3354. <p>
  3355. Index of file. Starting with 1. This is the same order with the
  3356. files in multi-file torrent.
  3357. </p>
  3358. </dd>
  3359. <dt class="hdlist1">
  3360. path
  3361. </dt>
  3362. <dd>
  3363. <p>
  3364. File path.
  3365. </p>
  3366. </dd>
  3367. <dt class="hdlist1">
  3368. length
  3369. </dt>
  3370. <dd>
  3371. <p>
  3372. File size in bytes.
  3373. </p>
  3374. </dd>
  3375. <dt class="hdlist1">
  3376. selected
  3377. </dt>
  3378. <dd>
  3379. <p>
  3380. "true" if this file is selected by <strong>--select-file</strong> option. If
  3381. <strong>--select-file</strong> is not specified or this is single torrent or no
  3382. torrent download, this value is always "true". Otherwise "false".
  3383. </p>
  3384. </dd>
  3385. <dt class="hdlist1">
  3386. uris
  3387. </dt>
  3388. <dd>
  3389. <p>
  3390. Returns the list of URI for this file. The element of list is the
  3391. same struct used in <strong>aria2.getUris</strong> method.
  3392. </p>
  3393. </dd>
  3394. </dl></div>
  3395. <div class="paragraph"><p><strong>aria2.getPeers</strong> <em>gid</em></p></div>
  3396. <div class="paragraph"><p>This method returns peer list of the download denoted by <em>gid</em>. <em>gid</em>
  3397. is of type string. This method is for BitTorrent only. The response
  3398. is of type array and its element is of type struct and it contains
  3399. following keys. The value type is string.</p></div>
  3400. <div class="dlist"><dl>
  3401. <dt class="hdlist1">
  3402. peerId
  3403. </dt>
  3404. <dd>
  3405. <p>
  3406. Percent-encoded peer ID.
  3407. </p>
  3408. </dd>
  3409. <dt class="hdlist1">
  3410. ip
  3411. </dt>
  3412. <dd>
  3413. <p>
  3414. IP address of the peer.
  3415. </p>
  3416. </dd>
  3417. <dt class="hdlist1">
  3418. port
  3419. </dt>
  3420. <dd>
  3421. <p>
  3422. Port number of the peer.
  3423. </p>
  3424. </dd>
  3425. <dt class="hdlist1">
  3426. bitfield
  3427. </dt>
  3428. <dd>
  3429. <p>
  3430. Hexadecimal representation of the download progress of the peer. The
  3431. highest bit corresponds to piece index 0. The set bits indicate the
  3432. piece is available and unset bits indicate the piece is missing. The
  3433. spare bits at the end are set to zero.
  3434. </p>
  3435. </dd>
  3436. <dt class="hdlist1">
  3437. amChoking
  3438. </dt>
  3439. <dd>
  3440. <p>
  3441. "true" if this client is choking the peer. Otherwise "false".
  3442. </p>
  3443. </dd>
  3444. <dt class="hdlist1">
  3445. peerChoking
  3446. </dt>
  3447. <dd>
  3448. <p>
  3449. "true" if the peer is choking this client. Otherwise "false".
  3450. </p>
  3451. </dd>
  3452. <dt class="hdlist1">
  3453. downloadSpeed
  3454. </dt>
  3455. <dd>
  3456. <p>
  3457. Download speed (byte/sec) that this client obtains from the peer.
  3458. </p>
  3459. </dd>
  3460. <dt class="hdlist1">
  3461. uploadSpeed
  3462. </dt>
  3463. <dd>
  3464. <p>
  3465. Upload speed(byte/sec) that this client uploads to the peer.
  3466. </p>
  3467. </dd>
  3468. <dt class="hdlist1">
  3469. seeder
  3470. </dt>
  3471. <dd>
  3472. <p>
  3473. "true" is this client is a seeder. Otherwise "false".
  3474. </p>
  3475. </dd>
  3476. </dl></div>
  3477. <div class="paragraph"><p><strong>aria2.getServers</strong> <em>gid</em></p></div>
  3478. <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
  3479. is of type array and its element is of type struct and it contains
  3480. following keys. The value type is string.</p></div>
  3481. <div class="dlist"><dl>
  3482. <dt class="hdlist1">
  3483. index
  3484. </dt>
  3485. <dd>
  3486. <p>
  3487. Index of file. Starting with 1. This is the same order with the
  3488. files in multi-file torrent.
  3489. </p>
  3490. </dd>
  3491. <dt class="hdlist1">
  3492. servers
  3493. </dt>
  3494. <dd>
  3495. <p>
  3496. The list of struct which contains following keys.
  3497. </p>
  3498. <div class="dlist"><dl>
  3499. <dt class="hdlist1">
  3500. uri
  3501. </dt>
  3502. <dd>
  3503. <p>
  3504. URI originally added.
  3505. </p>
  3506. </dd>
  3507. <dt class="hdlist1">
  3508. currentUri
  3509. </dt>
  3510. <dd>
  3511. <p>
  3512. This is the URI currently used for downloading. If redirection is
  3513. involved, currentUri and uri may differ.
  3514. </p>
  3515. </dd>
  3516. <dt class="hdlist1">
  3517. downloadSpeed
  3518. </dt>
  3519. <dd>
  3520. <p>
  3521. Download speed (byte/sec)
  3522. </p>
  3523. </dd>
  3524. </dl></div>
  3525. </dd>
  3526. </dl></div>
  3527. <div class="paragraph"><p><strong>aria2.tellActive</strong></p></div>
  3528. <div class="paragraph"><p>This method returns the list of active downloads. The response is of
  3529. type array and its element is the same struct returned by
  3530. <strong>aria2.tellStatus</strong> method.</p></div>
  3531. <div class="paragraph"><p><strong>aria2.tellWaiting</strong> <em>offset, num</em></p></div>
  3532. <div class="paragraph"><p>This method returns the list of waiting download, including paused
  3533. downloads. <em>offset</em> is of type integer and specifies the offset from
  3534. the download waiting at the front. <em>num</em> is of type integer and
  3535. specifies the number of downloads to be returned.</p></div>
  3536. <div class="paragraph"><p>If offset is a positive integer, this method returns downloads in the
  3537. range of [<em>offset</em>, <em>offset</em>+<em>num</em>).</p></div>
  3538. <div class="paragraph"><p><em>offset</em> can be a negative integer. <em>offset</em> == -1 points last
  3539. download in the waiting queue and <em>offset</em> == -2 points the download
  3540. before the last download, and so on. The downloads in the response are
  3541. in reversed order.</p></div>
  3542. <div class="paragraph"><p>For example, imagine that three downloads "A","B" and "C" are waiting
  3543. in this order. aria2.tellWaiting(0, 1) returns
  3544. ["A"]. aria2.tellWaiting(1, 2) returns ["B", "C"].
  3545. aria2.tellWaiting(-1, 2) returns ["C", "B"].</p></div>
  3546. <div class="paragraph"><p>The response is of type array and its element is the same struct
  3547. returned by <strong>aria2.tellStatus</strong> method.</p></div>
  3548. <div class="paragraph"><p><strong>aria2.tellStopped</strong> <em>offset, num</em></p></div>
  3549. <div class="paragraph"><p>This method returns the list of stopped download. <em>offset</em> is of type
  3550. integer and specifies the offset from the oldest download. <em>num</em> is of
  3551. type integer and specifies the number of downloads to be returned.</p></div>
  3552. <div class="paragraph"><p><em>offset</em> and <em>num</em> have the same semantics as <strong>aria2.tellWaiting</strong>
  3553. method.</p></div>
  3554. <div class="paragraph"><p>The response is of type array and its element is the same struct
  3555. returned by <strong>aria2.tellStatus</strong> method.</p></div>
  3556. <div class="paragraph"><p><strong>aria2.changePosition</strong> <em>gid, pos, how</em></p></div>
  3557. <div class="paragraph"><p>This method changes the position of the download denoted by
  3558. <em>gid</em>. <em>pos</em> is of type integer. <em>how</em> is of type string. If <em>how</em> is
  3559. "POS_SET", it moves the download to a position relative to the
  3560. beginning of the queue. If <em>how</em> is "POS_CUR", it moves the download
  3561. to a position relative to the current position. If <em>how</em> is "POS_END",
  3562. it moves the download to a position relative to the end of the
  3563. queue. If the destination position is less than 0 or beyond the end of
  3564. the queue, it moves the download to the beginning or the end of the
  3565. queue respectively. The response is of type integer and it is the
  3566. destination position.</p></div>
  3567. <div class="paragraph"><p>For example, if GID#1 is placed in position 3, aria2.changePosition(1,
  3568. -1, POS_CUR) will change its position to 2. Additional
  3569. aria2.changePosition(1, 0, POS_SET) will change its position to 0(the
  3570. beginning of the queue).</p></div>
  3571. <div class="paragraph"><p><strong>aria2.changeUri</strong> <em>gid, fileIndex, delUris, addUris[, position]</em></p></div>
  3572. <div class="paragraph"><p>This method removes URIs in <em>delUris</em> from and appends URIs in
  3573. <em>addUris</em> to download denoted by <em>gid</em>. <em>delUris</em> and <em>addUris</em> are
  3574. list of string. A download can contain multiple files and URIs are
  3575. attached to each file. <em>fileIndex</em> is used to select which file to
  3576. remove/attach given URIs. <em>fileIndex</em> is 1-based. <em>position</em> is used
  3577. to specify where URIs are inserted in the existing waiting URI
  3578. list. <em>position</em> is 0-based. When <em>position</em> is omitted, URIs are
  3579. appended to the back of the list. This method first execute removal
  3580. and then addition. <em>position</em> is the position after URIs are removed,
  3581. not the position when this method is called. When removing URI, if
  3582. same URIs exist in download, only one of them is removed for each URI
  3583. in <em>delUris</em>. In other words, there are three URIs
  3584. "http://example.org/aria2" and you want remove them all, you have to
  3585. specify (at least) 3 "http://example.org/aria2" in <em>delUris</em>. This
  3586. method returns a list which contains 2 integers. The first integer is
  3587. the number of URIs deleted. The second integer is the number of URIs
  3588. added.</p></div>
  3589. <div class="paragraph"><p><strong>aria2.getOption</strong> <em>gid</em></p></div>
  3590. <div class="paragraph"><p>This method returns options of the download denoted by <em>gid</em>. The
  3591. response is of type struct. Its key is the name of option. The value type
  3592. is string.</p></div>
  3593. <div class="paragraph"><p><strong>aria2.changeOption</strong> <em>gid, options</em></p></div>
  3594. <div class="paragraph"><p>This method changes options of the download denoted by <em>gid</em>
  3595. dynamically. <em>gid</em> is of type string. <em>options</em> is of type struct
  3596. and the available options are: <strong>bt-max-peers</strong>,
  3597. <strong>bt-request-peer-speed-limit</strong>, <strong>max-download-limit</strong> and
  3598. <strong>max-upload-limit</strong>. This method returns "OK" for success.</p></div>
  3599. <div class="paragraph"><p><strong>aria2.getGlobalOption</strong></p></div>
  3600. <div class="paragraph"><p>This method returns global options. The response is of type
  3601. struct. Its key is the name of option. The value type is string.
  3602. Because global options are used as a template for the options of newly
  3603. added download, the response contains keys returned by
  3604. <strong>aria2.getOption</strong> method.</p></div>
  3605. <div class="paragraph"><p><strong>aria2.changeGlobalOption</strong> <em>options</em></p></div>
  3606. <div class="paragraph"><p>This method changes global options dynamically. <em>options</em> is of type
  3607. struct and the available options are <strong>max-concurrent-downloads</strong>,
  3608. <strong>max-overall-download-limit</strong>, <strong>max-overall-upload-limit</strong>, <strong>log-level</strong>
  3609. and <strong>log</strong>. Using <strong>log</strong> option, you can dynamically start logging or
  3610. change log file. To stop logging, give empty string("") as a parameter
  3611. value. Note that log file is always opened in append mode. This method
  3612. returns "OK" for success.</p></div>
  3613. <div class="paragraph"><p><strong>aria2.purgeDownloadResult</strong></p></div>
  3614. <div class="paragraph"><p>This method purges completed/error/removed downloads to free memory.
  3615. This method returns "OK".</p></div>
  3616. <div class="paragraph"><p><strong>aria2.getVersion</strong></p></div>
  3617. <div class="paragraph"><p>This method returns version of the program and the list of enabled
  3618. features. The response is of type struct and contains following keys.</p></div>
  3619. <div class="dlist"><dl>
  3620. <dt class="hdlist1">
  3621. version
  3622. </dt>
  3623. <dd>
  3624. <p>
  3625. Version number of the program in string.
  3626. </p>
  3627. </dd>
  3628. <dt class="hdlist1">
  3629. enabledFeatures
  3630. </dt>
  3631. <dd>
  3632. <p>
  3633. List of enabled features. Each feature name is of type string.
  3634. </p>
  3635. </dd>
  3636. </dl></div>
  3637. <div class="paragraph"><p><strong>aria2.getSessionInfo</strong></p></div>
  3638. <div class="paragraph"><p>This method returns session information.
  3639. The response is of type struct and contains following key.</p></div>
  3640. <div class="dlist"><dl>
  3641. <dt class="hdlist1">
  3642. sessionId
  3643. </dt>
  3644. <dd>
  3645. <p>
  3646. Session ID, which is generated each time when aria2 is invoked.
  3647. </p>
  3648. </dd>
  3649. </dl></div>
  3650. <div class="paragraph"><p><strong>aria2.shutdown</strong></p></div>
  3651. <div class="paragraph"><p>This method shutdowns aria2. This method returns "OK".</p></div>
  3652. <div class="paragraph"><p><strong>aria2.forceShutdown</strong></p></div>
  3653. <div class="paragraph"><p>This method shutdowns aria2. This method behaves like <strong>aria2.shutdown</strong>
  3654. except that any actions which takes time such as contacting BitTorrent
  3655. tracker are skipped. This method returns "OK".</p></div>
  3656. <div class="paragraph"><p><strong>system.multicall</strong> <em>methods</em></p></div>
  3657. <div class="paragraph"><p>This methods encapsulates multiple method calls in a single request.
  3658. <em>methods</em> is of type array and its element is struct. The struct
  3659. contains two keys: "methodName" and "params". "methodName" is the
  3660. method name to call and "params" is array containing parameters to the
  3661. method. This method returns array of responses. The element of array
  3662. will either be a one-item array containing the return value of each
  3663. method call or struct of fault element if an encapsulated method call
  3664. fails.</p></div>
  3665. <h3 id="_error_handling">Error Handling</h3><div style="clear:left"></div>
  3666. <div class="paragraph"><p>In case of error, aria2 returns faultCode=1 and the error message in
  3667. faultString.</p></div>
  3668. <h3 id="_options_2">Options</h3><div style="clear:left"></div>
  3669. <div class="paragraph"><p>Same options for <strong>-i</strong> list are available. See <strong>Input File</strong> subsection
  3670. for complete list of options.</p></div>
  3671. <div class="paragraph"><p>In the option struct, name element is option name(without preceding
  3672. "--") and value element is argument as string.</p></div>
  3673. <div class="listingblock">
  3674. <div class="content">
  3675. <pre><tt>&lt;struct&gt;
  3676. &lt;member&gt;
  3677. &lt;name&gt;split&lt;/name&gt;
  3678. &lt;value&gt;&lt;string&gt;1&lt;/string&gt;&lt;/value&gt;
  3679. &lt;/member&gt;
  3680. &lt;member&gt;
  3681. &lt;name&gt;http-proxy&lt;/name&gt;
  3682. &lt;value&gt;&lt;string&gt;http://proxy/&lt;/string&gt;&lt;/value&gt;
  3683. &lt;/member&gt;
  3684. &lt;/struct&gt;</tt></pre>
  3685. </div></div>
  3686. <div class="paragraph"><p><strong>header</strong> and <strong>index-out</strong> option are allowed multiple times in
  3687. command-line. Since name should be unique in struct(many XML-RPC
  3688. library implementation uses hash or dict for struct), single string is
  3689. not enough. To overcome this situation, they can take array as value
  3690. as well as string.</p></div>
  3691. <div class="listingblock">
  3692. <div class="content">
  3693. <pre><tt>&lt;struct&gt;
  3694. &lt;member&gt;
  3695. &lt;name&gt;header&lt;/name&gt;
  3696. &lt;value&gt;
  3697. &lt;array&gt;
  3698. &lt;data&gt;
  3699. &lt;value&gt;&lt;string&gt;Accept-Language: ja&lt;/string&gt;&lt;/value&gt;
  3700. &lt;value&gt;&lt;string&gt;Accept-Charset: utf-8&lt;/string&gt;&lt;/value&gt;
  3701. &lt;/data&gt;
  3702. &lt;/array&gt;
  3703. &lt;/value&gt;
  3704. &lt;/member&gt;
  3705. &lt;/struct&gt;</tt></pre>
  3706. </div></div>
  3707. <h3 id="_sample_xml_rpc_client_code">Sample XML-RPC Client Code</h3><div style="clear:left"></div>
  3708. <div class="paragraph"><p>The following Ruby script adds <em>http://localhost/aria2.tar.bz2</em> to
  3709. aria2c operated on localhost with option <strong>--dir</strong>=<em>/downloads</em> and
  3710. prints its reponse.</p></div>
  3711. <div class="listingblock">
  3712. <div class="content">
  3713. <pre><tt>#!/usr/bin/env ruby
  3714. require 'xmlrpc/client'
  3715. require 'pp'
  3716. client=XMLRPC::Client.new2("http://localhost:6800/rpc")
  3717. options={ "dir" =&gt; "/downloads" }
  3718. result=client.call("aria2.addUri", [ "http://localhost/aria2.tar.bz2" ], options)
  3719. pp result</tt></pre>
  3720. </div></div>
  3721. <div class="paragraph"><p>If you are a Python lover, you can use xmlrpclib(for Python3.x, use
  3722. xmlrpc.client instead) to interact with aria2.</p></div>
  3723. <div class="listingblock">
  3724. <div class="content">
  3725. <pre><tt>import xmlrpclib
  3726. from pprint import pprint
  3727. s = xmlrpclib.ServerProxy("http://localhost:6800/rpc")
  3728. r = s.aria2.addUri(["http://localhost/aria2.tar.bz2"], {"dir":"/downloads"})
  3729. pprint(r)</tt></pre>
  3730. </div></div>
  3731. </div>
  3732. <h2 id="_example">EXAMPLE</h2>
  3733. <div class="sectionbody">
  3734. <h3 id="_http_ftp_segmented_download">HTTP/FTP Segmented Download</h3><div style="clear:left"></div>
  3735. <h4 id="_download_a_file">Download a file</h4>
  3736. <div class="listingblock">
  3737. <div class="content">
  3738. <pre><tt>aria2c "http://host/file.zip"</tt></pre>
  3739. </div></div>
  3740. <div class="admonitionblock">
  3741. <table><tr>
  3742. <td class="icon">
  3743. <div class="title">Note</div>
  3744. </td>
  3745. <td class="content">aria2 uses 5 connections to download 1 file by default.</td>
  3746. </tr></table>
  3747. </div>
  3748. <h4 id="_download_a_file_using_1_connection">Download a file using 1 connection</h4>
  3749. <div class="listingblock">
  3750. <div class="content">
  3751. <pre><tt>aria2c -s1 "http://host/file.zip"</tt></pre>
  3752. </div></div>
  3753. <div class="admonitionblock">
  3754. <table><tr>
  3755. <td class="icon">
  3756. <div class="title">Note</div>
  3757. </td>
  3758. <td class="content">aria2 uses 5 connections to download 1 file by default.
  3759. -s1 limits the number of connections to just 1.</td>
  3760. </tr></table>
  3761. </div>
  3762. <div class="admonitionblock">
  3763. <table><tr>
  3764. <td class="icon">
  3765. <div class="title">Note</div>
  3766. </td>
  3767. <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>
  3768. </tr></table>
  3769. </div>
  3770. <h4 id="_download_a_file_from_2_different_http_servers">Download a file from 2 different HTTP servers</h4>
  3771. <div class="listingblock">
  3772. <div class="content">
  3773. <pre><tt>aria2c "http://host/file.zip" "http://mirror/file.zip"</tt></pre>
  3774. </div></div>
  3775. <h4 id="_download_a_file_from_http_and_ftp_servers">Download a file from HTTP and FTP servers</h4>
  3776. <div class="listingblock">
  3777. <div class="content">
  3778. <pre><tt>aria2c "http://host1/file.zip" "ftp://host2/file.zip"</tt></pre>
  3779. </div></div>
  3780. <h4 id="_download_files_listed_in_a_text_file_concurrently">Download files listed in a text file concurrently</h4>
  3781. <div class="listingblock">
  3782. <div class="content">
  3783. <pre><tt>aria2c -ifiles.txt -j2</tt></pre>
  3784. </div></div>
  3785. <div class="admonitionblock">
  3786. <table><tr>
  3787. <td class="icon">
  3788. <div class="title">Note</div>
  3789. </td>
  3790. <td class="content">-j option specifies the number of parallel downloads.</td>
  3791. </tr></table>
  3792. </div>
  3793. <h4 id="_using_proxy">Using proxy</h4>
  3794. <div class="paragraph"><p>For HTTP:</p></div>
  3795. <div class="listingblock">
  3796. <div class="content">
  3797. <pre><tt>aria2c --http-proxy="http://proxy:8080" "http://host/file"</tt></pre>
  3798. </div></div>
  3799. <div class="listingblock">
  3800. <div class="content">
  3801. <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>
  3802. </div></div>
  3803. <div class="paragraph"><p>For FTP:</p></div>
  3804. <div class="listingblock">
  3805. <div class="content">
  3806. <pre><tt>aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"</tt></pre>
  3807. </div></div>
  3808. <div class="admonitionblock">
  3809. <table><tr>
  3810. <td class="icon">
  3811. <div class="title">Note</div>
  3812. </td>
  3813. <td class="content">See <strong>--http-proxy</strong>, <strong>--https-proxy</strong>, <strong>--ftp-proxy</strong>, <strong>--all-proxy</strong> and
  3814. <strong>--no-proxy</strong> for details. You can specify proxy in the environment
  3815. variables. See <strong>ENVIRONMENT</strong> section.</td>
  3816. </tr></table>
  3817. </div>
  3818. <h4 id="_proxy_with_authorization">Proxy with authorization</h4>
  3819. <div class="listingblock">
  3820. <div class="content">
  3821. <pre><tt>aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"</tt></pre>
  3822. </div></div>
  3823. <div class="listingblock">
  3824. <div class="content">
  3825. <pre><tt>aria2c --http-proxy="http://proxy:8080" --http-proxy-user="username" --http-proxy-passwd="password" "http://host/file"</tt></pre>
  3826. </div></div>
  3827. <h3 id="_metalink_download">Metalink Download</h3><div style="clear:left"></div>
  3828. <h4 id="_download_files_with_remote_metalink">Download files with remote Metalink</h4>
  3829. <div class="listingblock">
  3830. <div class="content">
  3831. <pre><tt>aria2c --follow-metalink=mem "http://host/file.metalink"</tt></pre>
  3832. </div></div>
  3833. <h4 id="_download_using_a_local_metalink_file">Download using a local metalink file</h4>
  3834. <div class="listingblock">
  3835. <div class="content">
  3836. <pre><tt>aria2c -p --lowest-speed-limit=4000 file.metalink</tt></pre>
  3837. </div></div>
  3838. <div class="admonitionblock">
  3839. <table><tr>
  3840. <td class="icon">
  3841. <div class="title">Note</div>
  3842. </td>
  3843. <td class="content">To stop a download, press Ctrl-C.
  3844. You can resume the transfer by running aria2c with the same argument in the same
  3845. directory.</td>
  3846. </tr></table>
  3847. </div>
  3848. <h4 id="_download_several_local_metalink_files">Download several local metalink files</h4>
  3849. <div class="listingblock">
  3850. <div class="content">
  3851. <pre><tt>aria2c -j2 file1.metalink file2.metalink</tt></pre>
  3852. </div></div>
  3853. <h4 id="_download_only_selected_files_using_index">Download only selected files using index</h4>
  3854. <div class="listingblock">
  3855. <div class="content">
  3856. <pre><tt>aria2c --select-file=1-4,8 file.metalink</tt></pre>
  3857. </div></div>
  3858. <div class="admonitionblock">
  3859. <table><tr>
  3860. <td class="icon">
  3861. <div class="title">Note</div>
  3862. </td>
  3863. <td class="content">The index is printed to the console using -S option.</td>
  3864. </tr></table>
  3865. </div>
  3866. <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>
  3867. <div class="listingblock">
  3868. <div class="content">
  3869. <pre><tt>aria2c --metalink-location=jp,us --metalink-version=1.1 --metalink-language=en-US file.metalink</tt></pre>
  3870. </div></div>
  3871. <h3 id="_bittorrent_download">BitTorrent Download</h3><div style="clear:left"></div>
  3872. <h4 id="_download_files_from_remote_bittorrent_file">Download files from remote BitTorrent file</h4>
  3873. <div class="listingblock">
  3874. <div class="content">
  3875. <pre><tt>aria2c --follow-torrent=mem "http://host/file.torrent"</tt></pre>
  3876. </div></div>
  3877. <h4 id="_download_using_a_local_torrent_file">Download using a local torrent file</h4>
  3878. <div class="listingblock">
  3879. <div class="content">
  3880. <pre><tt>aria2c --max-upload-limit=40K file.torrent</tt></pre>
  3881. </div></div>
  3882. <div class="admonitionblock">
  3883. <table><tr>
  3884. <td class="icon">
  3885. <div class="title">Note</div>
  3886. </td>
  3887. <td class="content">--max-upload-limit specifies the max of upload rate.</td>
  3888. </tr></table>
  3889. </div>
  3890. <div class="admonitionblock">
  3891. <table><tr>
  3892. <td class="icon">
  3893. <div class="title">Note</div>
  3894. </td>
  3895. <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>
  3896. </tr></table>
  3897. </div>
  3898. <h4 id="_download_using_bittorrent_magnet_uri">Download using BitTorrent Magnet URI</h4>
  3899. <div class="listingblock">
  3900. <div class="content">
  3901. <pre><tt>aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&amp;dn=aria2"</tt></pre>
  3902. </div></div>
  3903. <div class="admonitionblock">
  3904. <table><tr>
  3905. <td class="icon">
  3906. <div class="title">Note</div>
  3907. </td>
  3908. <td class="content">Don&#8217;t forget to quote BitTorrent Magnet URI which includes "&amp;"
  3909. character with single(') or double(") quotation.</td>
  3910. </tr></table>
  3911. </div>
  3912. <h4 id="_download_2_torrents">Download 2 torrents</h4>
  3913. <div class="listingblock">
  3914. <div class="content">
  3915. <pre><tt>aria2c -j2 file1.torrent file2.torrent</tt></pre>
  3916. </div></div>
  3917. <h4 id="_download_a_file_using_torrent_and_http_ftp_server">Download a file using torrent and HTTP/FTP server</h4>
  3918. <div class="listingblock">
  3919. <div class="content">
  3920. <pre><tt>aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"</tt></pre>
  3921. </div></div>
  3922. <div class="admonitionblock">
  3923. <table><tr>
  3924. <td class="icon">
  3925. <div class="title">Note</div>
  3926. </td>
  3927. <td class="content">Downloading multi file torrent with HTTP/FTP is not supported.</td>
  3928. </tr></table>
  3929. </div>
  3930. <h4 id="_download_only_selected_files_using_index_usually_called_selectable_download">Download only selected files using index(usually called "selectable download")</h4>
  3931. <div class="listingblock">
  3932. <div class="content">
  3933. <pre><tt>aria2c --select-file=1-4,8 file.torrent</tt></pre>
  3934. </div></div>
  3935. <div class="admonitionblock">
  3936. <table><tr>
  3937. <td class="icon">
  3938. <div class="title">Note</div>
  3939. </td>
  3940. <td class="content">The index is printed to the console using -S option.</td>
  3941. </tr></table>
  3942. </div>
  3943. <h4 id="_specify_output_filename">Specify output filename</h4>
  3944. <div class="paragraph"><p>To specify output filename for BitTorrent downloads, you need to know
  3945. the index of file in torrent file using <strong>-S</strong> option. For example, the
  3946. output looks like this:</p></div>
  3947. <div class="listingblock">
  3948. <div class="content">
  3949. <pre><tt>idx|path/length
  3950. ===+======================
  3951. 1|dist/base-2.6.18.iso
  3952. |99.9MiB
  3953. ---+----------------------
  3954. 2|dist/driver-2.6.18.iso
  3955. |169.0MiB
  3956. ---+----------------------</tt></pre>
  3957. </div></div>
  3958. <div class="paragraph"><p>To save <em>dist/base-2.6.18.iso</em> in <em>/tmp/mydir/base.iso</em> and
  3959. <em>dist/driver-2.6.18.iso</em> in <em>/tmp/dir/driver.iso</em>, use the following
  3960. command:</p></div>
  3961. <div class="listingblock">
  3962. <div class="content">
  3963. <pre><tt>aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent</tt></pre>
  3964. </div></div>
  3965. <h4 id="_change_the_listening_port_for_incoming_peer">Change the listening port for incoming peer</h4>
  3966. <div class="listingblock">
  3967. <div class="content">
  3968. <pre><tt>aria2c --listen-port=7000-7001,8000 file.torrent</tt></pre>
  3969. </div></div>
  3970. <div class="admonitionblock">
  3971. <table><tr>
  3972. <td class="icon">
  3973. <div class="title">Note</div>
  3974. </td>
  3975. <td class="content">Since aria2 doesn&#8217;t configure firewall or router for port forwarding, it&#8217;s up
  3976. to you to do it manually.</td>
  3977. </tr></table>
  3978. </div>
  3979. <h4 id="_specify_the_condition_to_stop_program_after_torrent_download_finished">Specify the condition to stop program after torrent download finished</h4>
  3980. <div class="listingblock">
  3981. <div class="content">
  3982. <pre><tt>aria2c --seed-time=120 --seed-ratio=1.0 file.torrent</tt></pre>
  3983. </div></div>
  3984. <div class="admonitionblock">
  3985. <table><tr>
  3986. <td class="icon">
  3987. <div class="title">Note</div>
  3988. </td>
  3989. <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>
  3990. </tr></table>
  3991. </div>
  3992. <h4 id="_throttle_upload_speed">Throttle upload speed</h4>
  3993. <div class="listingblock">
  3994. <div class="content">
  3995. <pre><tt>aria2c --max-upload-limit=100K file.torrent</tt></pre>
  3996. </div></div>
  3997. <h4 id="_enable_dht">Enable DHT</h4>
  3998. <div class="listingblock">
  3999. <div class="content">
  4000. <pre><tt>aria2c --enable-dht --dht-listen-port=6881 file.torrent</tt></pre>
  4001. </div></div>
  4002. <div class="admonitionblock">
  4003. <table><tr>
  4004. <td class="icon">
  4005. <div class="title">Note</div>
  4006. </td>
  4007. <td class="content">DHT uses udp port. Since aria2 doesn&#8217;t configure firewall or router for port
  4008. forwarding, it&#8217;s up to you to do it manually.</td>
  4009. </tr></table>
  4010. </div>
  4011. <h3 id="_more_advanced_http_features">More advanced HTTP features</h3><div style="clear:left"></div>
  4012. <h4 id="_load_cookies">Load cookies</h4>
  4013. <div class="listingblock">
  4014. <div class="content">
  4015. <pre><tt>aria2c --load-cookies=cookies.txt "http://host/file.zip"</tt></pre>
  4016. </div></div>
  4017. <div class="admonitionblock">
  4018. <table><tr>
  4019. <td class="icon">
  4020. <div class="title">Note</div>
  4021. </td>
  4022. <td class="content">You can use Firefox/Mozilla/Chromium&#8217;s cookie file without modification.</td>
  4023. </tr></table>
  4024. </div>
  4025. <h4 id="_resume_download_started_by_web_browsers_or_another_programs">Resume download started by web browsers or another programs</h4>
  4026. <div class="listingblock">
  4027. <div class="content">
  4028. <pre><tt>aria2c -c -s2 "http://host/partiallydownloadedfile.zip"</tt></pre>
  4029. </div></div>
  4030. <h4 id="_client_certificate_authorization_for_ssl_tls">Client certificate authorization for SSL/TLS</h4>
  4031. <div class="listingblock">
  4032. <div class="content">
  4033. <pre><tt>aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file</tt></pre>
  4034. </div></div>
  4035. <div class="admonitionblock">
  4036. <table><tr>
  4037. <td class="icon">
  4038. <div class="title">Note</div>
  4039. </td>
  4040. <td class="content">The file specified in <strong>--private-key</strong> must be decrypted. The behavior when
  4041. encrypted one is given is undefined.</td>
  4042. </tr></table>
  4043. </div>
  4044. <h4 id="_verify_peer_in_ssl_tls_using_given_ca_certificates">Verify peer in SSL/TLS using given CA certificates</h4>
  4045. <div class="listingblock">
  4046. <div class="content">
  4047. <pre><tt>aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file</tt></pre>
  4048. </div></div>
  4049. <h3 id="_and_more_advanced_features">And more advanced features</h3><div style="clear:left"></div>
  4050. <h4 id="_throttle_download_speed">Throttle download speed</h4>
  4051. <div class="listingblock">
  4052. <div class="content">
  4053. <pre><tt>aria2c --max-download-limit=100K file.metalink</tt></pre>
  4054. </div></div>
  4055. <h4 id="_repair_a_damaged_download">Repair a damaged download</h4>
  4056. <div class="listingblock">
  4057. <div class="content">
  4058. <pre><tt>aria2c -V file.metalink</tt></pre>
  4059. </div></div>
  4060. <div class="admonitionblock">
  4061. <table><tr>
  4062. <td class="icon">
  4063. <div class="title">Note</div>
  4064. </td>
  4065. <td class="content">This option is only available used with BitTorrent or metalink with chunk
  4066. checksums.</td>
  4067. </tr></table>
  4068. </div>
  4069. <h4 id="_drop_connection_if_download_speed_is_lower_than_specified_value">Drop connection if download speed is lower than specified value</h4>
  4070. <div class="listingblock">
  4071. <div class="content">
  4072. <pre><tt>aria2c --lowest-speed-limit=10K file.metalink</tt></pre>
  4073. </div></div>
  4074. <h4 id="_parameterized_uri_support">Parameterized URI support</h4>
  4075. <div class="paragraph"><p>You can specify set of parts:</p></div>
  4076. <div class="listingblock">
  4077. <div class="content">
  4078. <pre><tt>aria2c -P "http://{host1,host2,host3}/file.iso"</tt></pre>
  4079. </div></div>
  4080. <div class="paragraph"><p>You can specify numeric sequence:</p></div>
  4081. <div class="listingblock">
  4082. <div class="content">
  4083. <pre><tt>aria2c -Z -P "http://host/image[000-100].png"</tt></pre>
  4084. </div></div>
  4085. <div class="admonitionblock">
  4086. <table><tr>
  4087. <td class="icon">
  4088. <div class="title">Note</div>
  4089. </td>
  4090. <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>
  4091. </tr></table>
  4092. </div>
  4093. <div class="paragraph"><p>You can specify step counter:</p></div>
  4094. <div class="listingblock">
  4095. <div class="content">
  4096. <pre><tt>aria2c -Z -P "http://host/image[A-Z:2].png"</tt></pre>
  4097. </div></div>
  4098. <h4 id="_parallel_downloads_of_arbitrary_number_of_uri_metalink_torrent">Parallel downloads of arbitrary number of URI,metalink,torrent</h4>
  4099. <div class="listingblock">
  4100. <div class="content">
  4101. <pre><tt>aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink</tt></pre>
  4102. </div></div>
  4103. <h4 id="_bittorrent_encryption">BitTorrent Encryption</h4>
  4104. <div class="paragraph"><p>Encrypt whole payload using ARC4:</p></div>
  4105. <div class="listingblock">
  4106. <div class="content">
  4107. <pre><tt>aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent</tt></pre>
  4108. </div></div>
  4109. </div>
  4110. <h2 id="_see_also">SEE ALSO</h2>
  4111. <div class="sectionbody">
  4112. <div class="paragraph"><p>Project Web Site: <a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a></p></div>
  4113. <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>
  4114. <div class="paragraph"><p>Metalink Homepage: <a href="http://www.metalinker.org/">http://www.metalinker.org/</a></p></div>
  4115. <div class="paragraph"><p>The Metalink Download Description Format: <a href="http://www.rfc-editor.org/rfc/rfc5854.txt">http://www.rfc-editor.org/rfc/rfc5854.txt</a></p></div>
  4116. </div>
  4117. <h2 id="_copyright">COPYRIGHT</h2>
  4118. <div class="sectionbody">
  4119. <div class="paragraph"><p>Copyright &#169; 2006, 2010 Tatsuhiro Tsujikawa</p></div>
  4120. <div class="paragraph"><p>This program is free software; you can redistribute it and/or modify
  4121. it under the terms of the GNU General Public License as published by
  4122. the Free Software Foundation; either version 2 of the License, or
  4123. (at your option) any later version.</p></div>
  4124. <div class="paragraph"><p>This program is distributed in the hope that it will be useful,
  4125. but WITHOUT ANY WARRANTY; without even the implied warranty of
  4126. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4127. GNU General Public License for more details.</p></div>
  4128. <div class="paragraph"><p>You should have received a copy of the GNU General Public License
  4129. along with this program; if not, write to the Free Software
  4130. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</p></div>
  4131. <div class="paragraph"><p>In addition, as a special exception, the copyright holders give
  4132. permission to link the code of portions of this program with the
  4133. OpenSSL library under certain conditions as described in each
  4134. individual source file, and distribute linked combinations
  4135. including the two.
  4136. You must obey the GNU General Public License in all respects
  4137. for all of the code used other than OpenSSL. If you modify
  4138. file(s) with this exception, you may extend this exception to your
  4139. version of the file(s), but you are not obligated to do so. If you
  4140. do not wish to do so, delete this exception statement from your
  4141. version. If you delete this exception statement from all source
  4142. files in the program, then also delete it here.</p></div>
  4143. </div>
  4144. </div>
  4145. <div id="footnotes"><hr /></div>
  4146. <div id="footer">
  4147. <div id="footer-text">
  4148. Last updated 2010-07-09 01:48:36 JST
  4149. </div>
  4150. </div>
  4151. </body>
  4152. </html>