aria2c.1 71 KB

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