aria2c.1 84 KB

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