aria2c.1.html 131 KB

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