aria2c.1.html 102 KB

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