aria2c.1.html 160 KB

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