aria2c.1.html 119 KB

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