aria2c.1.html 105 KB

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