aria2c.1 71 KB

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