aria2c.1 96 KB

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