aria2c.1 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178
  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\&. Possible Values:
  1235. \fI1M\fR\-\fI1024M\fR
  1236. Default:
  1237. \fI20M\fR
  1238. .RE
  1239. .PP
  1240. \fB\-\-log\-level\fR=LEVEL
  1241. .RS 4
  1242. Set log level to output\&. LEVEL is either
  1243. \fIdebug\fR,
  1244. \fIinfo\fR,
  1245. \fInotice\fR,
  1246. \fIwarn\fR
  1247. or
  1248. \fIerror\fR\&. Default:
  1249. \fIdebug\fR
  1250. .RE
  1251. .PP
  1252. \fB\-\-on\-bt\-download\-complete\fR=COMMAND
  1253. .RS 4
  1254. For BitTorrent, a command specified in
  1255. \fB\-\-on\-download\-complete\fR
  1256. 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
  1257. \fB\-\-on\-download\-start\fR
  1258. option for the requirement of COMMAND\&. Possible Values:
  1259. \fI/path/to/command\fR
  1260. .RE
  1261. .PP
  1262. \fB\-\-on\-download\-complete\fR=COMMAND
  1263. .RS 4
  1264. Set the command to be executed when download completes\&. See
  1265. \fB\-\-on\-download\-start\fR
  1266. option for the requirement of COMMAND\&. See also
  1267. \fB\-\-on\-download\-stop\fR
  1268. option\&. Possible Values:
  1269. \fI/path/to/command\fR
  1270. .RE
  1271. .PP
  1272. \fB\-\-on\-download\-error\fR=COMMAND
  1273. .RS 4
  1274. Set the command to be executed when download aborts due to error\&. See
  1275. \fB\-\-on\-download\-start\fR
  1276. option for the requirement of COMMAND\&. See also
  1277. \fB\-\-on\-download\-stop\fR
  1278. option\&. Possible Values:
  1279. \fI/path/to/command\fR
  1280. .RE
  1281. .PP
  1282. \fB\-\-on\-download\-pause\fR=COMMAND
  1283. .RS 4
  1284. Set the command to be executed when download is paused\&. See
  1285. \fB\-\-on\-download\-start\fR
  1286. option for the requirement of COMMAND\&. Possible Values:
  1287. \fI/path/to/command\fR
  1288. .RE
  1289. .PP
  1290. \fB\-\-on\-download\-start\fR=COMMAND
  1291. .RS 4
  1292. 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:
  1293. \fI/path/to/command\fR
  1294. .RE
  1295. .PP
  1296. \fB\-\-on\-download\-stop\fR=COMMAND
  1297. .RS 4
  1298. Set the command to be executed when download stops\&. You can override the command to be executed for particular download result using
  1299. \fB\-\-on\-download\-complete\fR
  1300. and
  1301. \fB\-\-on\-download\-error\fR\&. If they are specified, command specified in this option is not executed\&. See
  1302. \fB\-\-on\-download\-start\fR
  1303. option for the requirement of COMMAND\&. Possible Values:
  1304. \fI/path/to/command\fR
  1305. .RE
  1306. .PP
  1307. \fB\-\-summary\-interval\fR=SEC
  1308. .RS 4
  1309. Set interval in seconds to output download progress summary\&. Setting
  1310. \fI0\fR
  1311. suppresses the output\&. Default:
  1312. \fI60\fR
  1313. .RE
  1314. .if n \{\
  1315. .sp
  1316. .\}
  1317. .RS 4
  1318. .it 1 an-trap
  1319. .nr an-no-space-flag 1
  1320. .nr an-break-flag 1
  1321. .br
  1322. .ps +1
  1323. \fBNote\fR
  1324. .ps -1
  1325. .br
  1326. .sp
  1327. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  1328. .sp .5v
  1329. .RE
  1330. .PP
  1331. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  1332. .RS 4
  1333. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  1334. \fIfalse\fR
  1335. .RE
  1336. .PP
  1337. \fB\-\-max\-overall\-download\-limit\fR=SPEED
  1338. .RS 4
  1339. Set max overall download speed in bytes/sec\&.
  1340. \fI0\fR
  1341. means unrestricted\&. You can append
  1342. \fIK\fR
  1343. or
  1344. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the download speed per download, use
  1345. \fB\-\-max\-download\-limit\fR
  1346. option\&. Default:
  1347. \fI0\fR
  1348. .RE
  1349. .PP
  1350. \fB\-\-max\-download\-limit\fR=SPEED
  1351. .RS 4
  1352. Set max download speed per each download in bytes/sec\&.
  1353. \fI0\fR
  1354. means unrestricted\&. You can append
  1355. \fIK\fR
  1356. or
  1357. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall download speed, use
  1358. \fB\-\-max\-overall\-download\-limit\fR
  1359. option\&. Default:
  1360. \fI0\fR
  1361. .RE
  1362. .PP
  1363. \fB\-\-no\-conf\fR
  1364. .RS 4
  1365. Disable loading aria2\&.conf file\&.
  1366. .RE
  1367. .PP
  1368. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  1369. .RS 4
  1370. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  1371. \fIK\fR
  1372. or
  1373. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  1374. \fI5M\fR
  1375. .RE
  1376. .PP
  1377. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  1378. .RS 4
  1379. Enable parameterized URI support\&. You can specify set of parts:
  1380. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  1381. \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:
  1382. \fIfalse\fR
  1383. .RE
  1384. .PP
  1385. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  1386. .RS 4
  1387. Make aria2 quiet (no console output)\&. Default:
  1388. \fIfalse\fR
  1389. .RE
  1390. .PP
  1391. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  1392. .RS 4
  1393. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  1394. \fItrue\fR
  1395. .RE
  1396. .PP
  1397. \fB\-\-remove\-control\-file\fR[=\fItrue\fR|\fIfalse\fR]
  1398. .RS 4
  1399. Remove control file before download\&. Using with
  1400. \fB\-\-allow\-overwrite\fR=\fItrue\fR, download always starts from scratch\&. This will be useful for users behind proxy server which disables resume\&.
  1401. .RE
  1402. .if n \{\
  1403. .sp
  1404. .\}
  1405. .RS 4
  1406. .it 1 an-trap
  1407. .nr an-no-space-flag 1
  1408. .nr an-break-flag 1
  1409. .br
  1410. .ps +1
  1411. \fBNote\fR
  1412. .ps -1
  1413. .br
  1414. .sp
  1415. For Metalink downloads, \-C1 is recommended for proxy server which disables resume, in order to avoid establishing unnecessary connections\&.
  1416. .sp .5v
  1417. .RE
  1418. .PP
  1419. \fB\-\-save\-session\fR=FILE
  1420. .RS 4
  1421. Save error/unfinished downloads to FILE on exit\&. You can pass this output file to aria2c with
  1422. \fB\-i\fR
  1423. option on restart\&. Please note that downloads added by
  1424. \fBaria2\&.addTorrent\fR
  1425. and
  1426. \fBaria2\&.addMetalink\fR
  1427. XML\-RPC method are not saved\&.
  1428. .RE
  1429. .PP
  1430. \fB\-\-stop\fR=SEC
  1431. .RS 4
  1432. Stop application after SEC seconds has passed\&. If
  1433. \fI0\fR
  1434. is given, this feature is disabled\&. Default:
  1435. \fI0\fR
  1436. .RE
  1437. .PP
  1438. \fB\-v\fR, \fB\-\-version\fR
  1439. .RS 4
  1440. Print the version number, copyright and the configuration information and exit\&.
  1441. .RE
  1442. .SS "Options That Take An Optional Argument"
  1443. .sp
  1444. 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\&.
  1445. .SS "URI, MAGNET, TORRENT_FILE, METALINK_FILE"
  1446. .sp
  1447. 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\&.
  1448. .sp
  1449. 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\&.
  1450. .sp
  1451. 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\&.
  1452. .sp
  1453. 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\&.
  1454. .if n \{\
  1455. .sp
  1456. .\}
  1457. .RS 4
  1458. .it 1 an-trap
  1459. .nr an-no-space-flag 1
  1460. .nr an-break-flag 1
  1461. .br
  1462. .ps +1
  1463. \fBNote\fR
  1464. .ps -1
  1465. .br
  1466. .sp
  1467. Make sure that URI is quoted with single(\*(Aq) or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  1468. .sp .5v
  1469. .RE
  1470. .SS "Resuming Download"
  1471. .sp
  1472. Usually, you can resume transfer by just issuing same command(aria2c URI) if the previous transfer is made by aria2\&.
  1473. .sp
  1474. 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)\&.
  1475. .SH "EXIT STATUS"
  1476. .sp
  1477. 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\&.
  1478. .PP
  1479. \fB0\fR
  1480. .RS 4
  1481. If all downloads are successful\&.
  1482. .RE
  1483. .PP
  1484. \fB1\fR
  1485. .RS 4
  1486. If an unknown error occurs\&.
  1487. .RE
  1488. .PP
  1489. \fB2\fR
  1490. .RS 4
  1491. If time out occurs\&.
  1492. .RE
  1493. .PP
  1494. \fB3\fR
  1495. .RS 4
  1496. If a resource is not found\&.
  1497. .RE
  1498. .PP
  1499. \fB4\fR
  1500. .RS 4
  1501. If aria2 sees the specfied number of "resource not found" error\&. See
  1502. \fB\-\-max\-file\-not\-found\fR
  1503. option)\&.
  1504. .RE
  1505. .PP
  1506. \fB5\fR
  1507. .RS 4
  1508. If a download aborts because download speed is too slow\&. See
  1509. \fB\-\-lowest\-speed\-limit\fR
  1510. option)
  1511. .RE
  1512. .PP
  1513. \fB6\fR
  1514. .RS 4
  1515. If network problem occurs\&.
  1516. .RE
  1517. .PP
  1518. \fB7\fR
  1519. .RS 4
  1520. 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\&.
  1521. .RE
  1522. .PP
  1523. \fB8\fR
  1524. .RS 4
  1525. If server does not support resume when resume is required to complete download\&.
  1526. .RE
  1527. .if n \{\
  1528. .sp
  1529. .\}
  1530. .RS 4
  1531. .it 1 an-trap
  1532. .nr an-no-space-flag 1
  1533. .nr an-break-flag 1
  1534. .br
  1535. .ps +1
  1536. \fBNote\fR
  1537. .ps -1
  1538. .br
  1539. .sp
  1540. An error occurred in a finished download will not be reported as exit status\&.
  1541. .sp .5v
  1542. .RE
  1543. .SH "ENVIRONMENT"
  1544. .sp
  1545. aria2 recognizes the following environment variables\&.
  1546. .PP
  1547. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1548. .RS 4
  1549. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  1550. \fB\-\-http\-proxy\fR
  1551. overrides this value\&.
  1552. .RE
  1553. .PP
  1554. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1555. .RS 4
  1556. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  1557. \fB\-\-https\-proxy\fR
  1558. overrides this value\&.
  1559. .RE
  1560. .PP
  1561. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1562. .RS 4
  1563. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  1564. \fB\-\-ftp\-proxy\fR
  1565. overrides this value\&.
  1566. .RE
  1567. .PP
  1568. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1569. .RS 4
  1570. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  1571. \fB\-\-all\-proxy\fR
  1572. overrides this value\&.
  1573. .RE
  1574. .PP
  1575. no_proxy [DOMAIN,\&...]
  1576. .RS 4
  1577. 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
  1578. \fB\-\-no\-proxy\fR
  1579. overrides this value\&.
  1580. .RE
  1581. .SH "FILES"
  1582. .SS "aria2\&.conf"
  1583. .sp
  1584. 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\&.
  1585. .sp
  1586. 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\&.
  1587. .sp
  1588. .if n \{\
  1589. .RS 4
  1590. .\}
  1591. .nf
  1592. # sample configuration file for aria2c
  1593. listen\-port=60000
  1594. dht\-listen\-port=60000
  1595. seed\-ratio=1\&.0
  1596. max\-upload\-limit=50K
  1597. ftp\-pasv=true
  1598. .fi
  1599. .if n \{\
  1600. .RE
  1601. .\}
  1602. .SS "dht\&.dat"
  1603. .sp
  1604. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1605. .SS "Control File"
  1606. .sp
  1607. 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\&.)
  1608. .sp
  1609. 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\&.
  1610. .sp
  1611. 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\&.
  1612. .SS "Input File"
  1613. .sp
  1614. 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\&.
  1615. .sp
  1616. 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\&.
  1617. .sp
  1618. Lines starting with "#" are treated as comments and skipped\&.
  1619. .sp
  1620. Additionally, the following options can be specified after each line of URIs\&. These optional lines must start with white space(s)\&.
  1621. .sp
  1622. .RS 4
  1623. .ie n \{\
  1624. \h'-04'\(bu\h'+03'\c
  1625. .\}
  1626. .el \{\
  1627. .sp -1
  1628. .IP \(bu 2.3
  1629. .\}
  1630. dir
  1631. .RE
  1632. .sp
  1633. .RS 4
  1634. .ie n \{\
  1635. \h'-04'\(bu\h'+03'\c
  1636. .\}
  1637. .el \{\
  1638. .sp -1
  1639. .IP \(bu 2.3
  1640. .\}
  1641. check\-integrity
  1642. .RE
  1643. .sp
  1644. .RS 4
  1645. .ie n \{\
  1646. \h'-04'\(bu\h'+03'\c
  1647. .\}
  1648. .el \{\
  1649. .sp -1
  1650. .IP \(bu 2.3
  1651. .\}
  1652. continue
  1653. .RE
  1654. .sp
  1655. .RS 4
  1656. .ie n \{\
  1657. \h'-04'\(bu\h'+03'\c
  1658. .\}
  1659. .el \{\
  1660. .sp -1
  1661. .IP \(bu 2.3
  1662. .\}
  1663. all\-proxy
  1664. .RE
  1665. .sp
  1666. .RS 4
  1667. .ie n \{\
  1668. \h'-04'\(bu\h'+03'\c
  1669. .\}
  1670. .el \{\
  1671. .sp -1
  1672. .IP \(bu 2.3
  1673. .\}
  1674. all\-proxy\-user
  1675. .RE
  1676. .sp
  1677. .RS 4
  1678. .ie n \{\
  1679. \h'-04'\(bu\h'+03'\c
  1680. .\}
  1681. .el \{\
  1682. .sp -1
  1683. .IP \(bu 2.3
  1684. .\}
  1685. all\-proxy\-passwd
  1686. .RE
  1687. .sp
  1688. .RS 4
  1689. .ie n \{\
  1690. \h'-04'\(bu\h'+03'\c
  1691. .\}
  1692. .el \{\
  1693. .sp -1
  1694. .IP \(bu 2.3
  1695. .\}
  1696. connect\-timeout
  1697. .RE
  1698. .sp
  1699. .RS 4
  1700. .ie n \{\
  1701. \h'-04'\(bu\h'+03'\c
  1702. .\}
  1703. .el \{\
  1704. .sp -1
  1705. .IP \(bu 2.3
  1706. .\}
  1707. dry\-run
  1708. .RE
  1709. .sp
  1710. .RS 4
  1711. .ie n \{\
  1712. \h'-04'\(bu\h'+03'\c
  1713. .\}
  1714. .el \{\
  1715. .sp -1
  1716. .IP \(bu 2.3
  1717. .\}
  1718. lowest\-speed\-limit
  1719. .RE
  1720. .sp
  1721. .RS 4
  1722. .ie n \{\
  1723. \h'-04'\(bu\h'+03'\c
  1724. .\}
  1725. .el \{\
  1726. .sp -1
  1727. .IP \(bu 2.3
  1728. .\}
  1729. max\-file\-not\-found
  1730. .RE
  1731. .sp
  1732. .RS 4
  1733. .ie n \{\
  1734. \h'-04'\(bu\h'+03'\c
  1735. .\}
  1736. .el \{\
  1737. .sp -1
  1738. .IP \(bu 2.3
  1739. .\}
  1740. max\-tries
  1741. .RE
  1742. .sp
  1743. .RS 4
  1744. .ie n \{\
  1745. \h'-04'\(bu\h'+03'\c
  1746. .\}
  1747. .el \{\
  1748. .sp -1
  1749. .IP \(bu 2.3
  1750. .\}
  1751. no\-proxy
  1752. .RE
  1753. .sp
  1754. .RS 4
  1755. .ie n \{\
  1756. \h'-04'\(bu\h'+03'\c
  1757. .\}
  1758. .el \{\
  1759. .sp -1
  1760. .IP \(bu 2.3
  1761. .\}
  1762. out
  1763. .RE
  1764. .sp
  1765. .RS 4
  1766. .ie n \{\
  1767. \h'-04'\(bu\h'+03'\c
  1768. .\}
  1769. .el \{\
  1770. .sp -1
  1771. .IP \(bu 2.3
  1772. .\}
  1773. proxy\-method
  1774. .RE
  1775. .sp
  1776. .RS 4
  1777. .ie n \{\
  1778. \h'-04'\(bu\h'+03'\c
  1779. .\}
  1780. .el \{\
  1781. .sp -1
  1782. .IP \(bu 2.3
  1783. .\}
  1784. remote\-time
  1785. .RE
  1786. .sp
  1787. .RS 4
  1788. .ie n \{\
  1789. \h'-04'\(bu\h'+03'\c
  1790. .\}
  1791. .el \{\
  1792. .sp -1
  1793. .IP \(bu 2.3
  1794. .\}
  1795. split
  1796. .RE
  1797. .sp
  1798. .RS 4
  1799. .ie n \{\
  1800. \h'-04'\(bu\h'+03'\c
  1801. .\}
  1802. .el \{\
  1803. .sp -1
  1804. .IP \(bu 2.3
  1805. .\}
  1806. timeout
  1807. .RE
  1808. .sp
  1809. .RS 4
  1810. .ie n \{\
  1811. \h'-04'\(bu\h'+03'\c
  1812. .\}
  1813. .el \{\
  1814. .sp -1
  1815. .IP \(bu 2.3
  1816. .\}
  1817. http\-auth\-challenge
  1818. .RE
  1819. .sp
  1820. .RS 4
  1821. .ie n \{\
  1822. \h'-04'\(bu\h'+03'\c
  1823. .\}
  1824. .el \{\
  1825. .sp -1
  1826. .IP \(bu 2.3
  1827. .\}
  1828. http\-no\-cache
  1829. .RE
  1830. .sp
  1831. .RS 4
  1832. .ie n \{\
  1833. \h'-04'\(bu\h'+03'\c
  1834. .\}
  1835. .el \{\
  1836. .sp -1
  1837. .IP \(bu 2.3
  1838. .\}
  1839. http\-user
  1840. .RE
  1841. .sp
  1842. .RS 4
  1843. .ie n \{\
  1844. \h'-04'\(bu\h'+03'\c
  1845. .\}
  1846. .el \{\
  1847. .sp -1
  1848. .IP \(bu 2.3
  1849. .\}
  1850. http\-passwd
  1851. .RE
  1852. .sp
  1853. .RS 4
  1854. .ie n \{\
  1855. \h'-04'\(bu\h'+03'\c
  1856. .\}
  1857. .el \{\
  1858. .sp -1
  1859. .IP \(bu 2.3
  1860. .\}
  1861. http\-proxy
  1862. .RE
  1863. .sp
  1864. .RS 4
  1865. .ie n \{\
  1866. \h'-04'\(bu\h'+03'\c
  1867. .\}
  1868. .el \{\
  1869. .sp -1
  1870. .IP \(bu 2.3
  1871. .\}
  1872. http\-proxy\-user
  1873. .RE
  1874. .sp
  1875. .RS 4
  1876. .ie n \{\
  1877. \h'-04'\(bu\h'+03'\c
  1878. .\}
  1879. .el \{\
  1880. .sp -1
  1881. .IP \(bu 2.3
  1882. .\}
  1883. http\-proxy\-passwd
  1884. .RE
  1885. .sp
  1886. .RS 4
  1887. .ie n \{\
  1888. \h'-04'\(bu\h'+03'\c
  1889. .\}
  1890. .el \{\
  1891. .sp -1
  1892. .IP \(bu 2.3
  1893. .\}
  1894. https\-proxy
  1895. .RE
  1896. .sp
  1897. .RS 4
  1898. .ie n \{\
  1899. \h'-04'\(bu\h'+03'\c
  1900. .\}
  1901. .el \{\
  1902. .sp -1
  1903. .IP \(bu 2.3
  1904. .\}
  1905. https\-proxy\-user
  1906. .RE
  1907. .sp
  1908. .RS 4
  1909. .ie n \{\
  1910. \h'-04'\(bu\h'+03'\c
  1911. .\}
  1912. .el \{\
  1913. .sp -1
  1914. .IP \(bu 2.3
  1915. .\}
  1916. https\-proxy\-passwd
  1917. .RE
  1918. .sp
  1919. .RS 4
  1920. .ie n \{\
  1921. \h'-04'\(bu\h'+03'\c
  1922. .\}
  1923. .el \{\
  1924. .sp -1
  1925. .IP \(bu 2.3
  1926. .\}
  1927. referer
  1928. .RE
  1929. .sp
  1930. .RS 4
  1931. .ie n \{\
  1932. \h'-04'\(bu\h'+03'\c
  1933. .\}
  1934. .el \{\
  1935. .sp -1
  1936. .IP \(bu 2.3
  1937. .\}
  1938. enable\-http\-keep\-alive
  1939. .RE
  1940. .sp
  1941. .RS 4
  1942. .ie n \{\
  1943. \h'-04'\(bu\h'+03'\c
  1944. .\}
  1945. .el \{\
  1946. .sp -1
  1947. .IP \(bu 2.3
  1948. .\}
  1949. enable\-http\-pipelining
  1950. .RE
  1951. .sp
  1952. .RS 4
  1953. .ie n \{\
  1954. \h'-04'\(bu\h'+03'\c
  1955. .\}
  1956. .el \{\
  1957. .sp -1
  1958. .IP \(bu 2.3
  1959. .\}
  1960. header
  1961. .RE
  1962. .sp
  1963. .RS 4
  1964. .ie n \{\
  1965. \h'-04'\(bu\h'+03'\c
  1966. .\}
  1967. .el \{\
  1968. .sp -1
  1969. .IP \(bu 2.3
  1970. .\}
  1971. use\-head
  1972. .RE
  1973. .sp
  1974. .RS 4
  1975. .ie n \{\
  1976. \h'-04'\(bu\h'+03'\c
  1977. .\}
  1978. .el \{\
  1979. .sp -1
  1980. .IP \(bu 2.3
  1981. .\}
  1982. user\-agent
  1983. .RE
  1984. .sp
  1985. .RS 4
  1986. .ie n \{\
  1987. \h'-04'\(bu\h'+03'\c
  1988. .\}
  1989. .el \{\
  1990. .sp -1
  1991. .IP \(bu 2.3
  1992. .\}
  1993. ftp\-user
  1994. .RE
  1995. .sp
  1996. .RS 4
  1997. .ie n \{\
  1998. \h'-04'\(bu\h'+03'\c
  1999. .\}
  2000. .el \{\
  2001. .sp -1
  2002. .IP \(bu 2.3
  2003. .\}
  2004. ftp\-passwd
  2005. .RE
  2006. .sp
  2007. .RS 4
  2008. .ie n \{\
  2009. \h'-04'\(bu\h'+03'\c
  2010. .\}
  2011. .el \{\
  2012. .sp -1
  2013. .IP \(bu 2.3
  2014. .\}
  2015. ftp\-pasv
  2016. .RE
  2017. .sp
  2018. .RS 4
  2019. .ie n \{\
  2020. \h'-04'\(bu\h'+03'\c
  2021. .\}
  2022. .el \{\
  2023. .sp -1
  2024. .IP \(bu 2.3
  2025. .\}
  2026. ftp\-proxy
  2027. .RE
  2028. .sp
  2029. .RS 4
  2030. .ie n \{\
  2031. \h'-04'\(bu\h'+03'\c
  2032. .\}
  2033. .el \{\
  2034. .sp -1
  2035. .IP \(bu 2.3
  2036. .\}
  2037. ftp\-proxy\-user
  2038. .RE
  2039. .sp
  2040. .RS 4
  2041. .ie n \{\
  2042. \h'-04'\(bu\h'+03'\c
  2043. .\}
  2044. .el \{\
  2045. .sp -1
  2046. .IP \(bu 2.3
  2047. .\}
  2048. ftp\-proxy\-passwd
  2049. .RE
  2050. .sp
  2051. .RS 4
  2052. .ie n \{\
  2053. \h'-04'\(bu\h'+03'\c
  2054. .\}
  2055. .el \{\
  2056. .sp -1
  2057. .IP \(bu 2.3
  2058. .\}
  2059. ftp\-type
  2060. .RE
  2061. .sp
  2062. .RS 4
  2063. .ie n \{\
  2064. \h'-04'\(bu\h'+03'\c
  2065. .\}
  2066. .el \{\
  2067. .sp -1
  2068. .IP \(bu 2.3
  2069. .\}
  2070. ftp\-reuse\-connection
  2071. .RE
  2072. .sp
  2073. .RS 4
  2074. .ie n \{\
  2075. \h'-04'\(bu\h'+03'\c
  2076. .\}
  2077. .el \{\
  2078. .sp -1
  2079. .IP \(bu 2.3
  2080. .\}
  2081. no\-netrc
  2082. .RE
  2083. .sp
  2084. .RS 4
  2085. .ie n \{\
  2086. \h'-04'\(bu\h'+03'\c
  2087. .\}
  2088. .el \{\
  2089. .sp -1
  2090. .IP \(bu 2.3
  2091. .\}
  2092. reuse\-uri
  2093. .RE
  2094. .sp
  2095. .RS 4
  2096. .ie n \{\
  2097. \h'-04'\(bu\h'+03'\c
  2098. .\}
  2099. .el \{\
  2100. .sp -1
  2101. .IP \(bu 2.3
  2102. .\}
  2103. select\-file
  2104. .RE
  2105. .sp
  2106. .RS 4
  2107. .ie n \{\
  2108. \h'-04'\(bu\h'+03'\c
  2109. .\}
  2110. .el \{\
  2111. .sp -1
  2112. .IP \(bu 2.3
  2113. .\}
  2114. bt\-enable\-lpd
  2115. .RE
  2116. .sp
  2117. .RS 4
  2118. .ie n \{\
  2119. \h'-04'\(bu\h'+03'\c
  2120. .\}
  2121. .el \{\
  2122. .sp -1
  2123. .IP \(bu 2.3
  2124. .\}
  2125. bt\-external\-ip
  2126. .RE
  2127. .sp
  2128. .RS 4
  2129. .ie n \{\
  2130. \h'-04'\(bu\h'+03'\c
  2131. .\}
  2132. .el \{\
  2133. .sp -1
  2134. .IP \(bu 2.3
  2135. .\}
  2136. bt\-hash\-check\-seed
  2137. .RE
  2138. .sp
  2139. .RS 4
  2140. .ie n \{\
  2141. \h'-04'\(bu\h'+03'\c
  2142. .\}
  2143. .el \{\
  2144. .sp -1
  2145. .IP \(bu 2.3
  2146. .\}
  2147. bt\-max\-open\-files
  2148. .RE
  2149. .sp
  2150. .RS 4
  2151. .ie n \{\
  2152. \h'-04'\(bu\h'+03'\c
  2153. .\}
  2154. .el \{\
  2155. .sp -1
  2156. .IP \(bu 2.3
  2157. .\}
  2158. bt\-max\-peers
  2159. .RE
  2160. .sp
  2161. .RS 4
  2162. .ie n \{\
  2163. \h'-04'\(bu\h'+03'\c
  2164. .\}
  2165. .el \{\
  2166. .sp -1
  2167. .IP \(bu 2.3
  2168. .\}
  2169. bt\-metadata\-only
  2170. .RE
  2171. .sp
  2172. .RS 4
  2173. .ie n \{\
  2174. \h'-04'\(bu\h'+03'\c
  2175. .\}
  2176. .el \{\
  2177. .sp -1
  2178. .IP \(bu 2.3
  2179. .\}
  2180. bt\-min\-crypto\-level
  2181. .RE
  2182. .sp
  2183. .RS 4
  2184. .ie n \{\
  2185. \h'-04'\(bu\h'+03'\c
  2186. .\}
  2187. .el \{\
  2188. .sp -1
  2189. .IP \(bu 2.3
  2190. .\}
  2191. bt\-prioritize\-piece
  2192. .RE
  2193. .sp
  2194. .RS 4
  2195. .ie n \{\
  2196. \h'-04'\(bu\h'+03'\c
  2197. .\}
  2198. .el \{\
  2199. .sp -1
  2200. .IP \(bu 2.3
  2201. .\}
  2202. bt\-require\-crypto
  2203. .RE
  2204. .sp
  2205. .RS 4
  2206. .ie n \{\
  2207. \h'-04'\(bu\h'+03'\c
  2208. .\}
  2209. .el \{\
  2210. .sp -1
  2211. .IP \(bu 2.3
  2212. .\}
  2213. bt\-request\-peer\-speed\-limit
  2214. .RE
  2215. .sp
  2216. .RS 4
  2217. .ie n \{\
  2218. \h'-04'\(bu\h'+03'\c
  2219. .\}
  2220. .el \{\
  2221. .sp -1
  2222. .IP \(bu 2.3
  2223. .\}
  2224. bt\-save\-metadata
  2225. .RE
  2226. .sp
  2227. .RS 4
  2228. .ie n \{\
  2229. \h'-04'\(bu\h'+03'\c
  2230. .\}
  2231. .el \{\
  2232. .sp -1
  2233. .IP \(bu 2.3
  2234. .\}
  2235. bt\-seed\-unverified
  2236. .RE
  2237. .sp
  2238. .RS 4
  2239. .ie n \{\
  2240. \h'-04'\(bu\h'+03'\c
  2241. .\}
  2242. .el \{\
  2243. .sp -1
  2244. .IP \(bu 2.3
  2245. .\}
  2246. bt\-stop\-timeout
  2247. .RE
  2248. .sp
  2249. .RS 4
  2250. .ie n \{\
  2251. \h'-04'\(bu\h'+03'\c
  2252. .\}
  2253. .el \{\
  2254. .sp -1
  2255. .IP \(bu 2.3
  2256. .\}
  2257. bt\-tracker\-interval
  2258. .RE
  2259. .sp
  2260. .RS 4
  2261. .ie n \{\
  2262. \h'-04'\(bu\h'+03'\c
  2263. .\}
  2264. .el \{\
  2265. .sp -1
  2266. .IP \(bu 2.3
  2267. .\}
  2268. bt\-tracker\-timeout
  2269. .RE
  2270. .sp
  2271. .RS 4
  2272. .ie n \{\
  2273. \h'-04'\(bu\h'+03'\c
  2274. .\}
  2275. .el \{\
  2276. .sp -1
  2277. .IP \(bu 2.3
  2278. .\}
  2279. bt\-tracker\-connect\-timeout
  2280. .RE
  2281. .sp
  2282. .RS 4
  2283. .ie n \{\
  2284. \h'-04'\(bu\h'+03'\c
  2285. .\}
  2286. .el \{\
  2287. .sp -1
  2288. .IP \(bu 2.3
  2289. .\}
  2290. enable\-peer\-exchange
  2291. .RE
  2292. .sp
  2293. .RS 4
  2294. .ie n \{\
  2295. \h'-04'\(bu\h'+03'\c
  2296. .\}
  2297. .el \{\
  2298. .sp -1
  2299. .IP \(bu 2.3
  2300. .\}
  2301. follow\-torrent
  2302. .RE
  2303. .sp
  2304. .RS 4
  2305. .ie n \{\
  2306. \h'-04'\(bu\h'+03'\c
  2307. .\}
  2308. .el \{\
  2309. .sp -1
  2310. .IP \(bu 2.3
  2311. .\}
  2312. index\-out
  2313. .RE
  2314. .sp
  2315. .RS 4
  2316. .ie n \{\
  2317. \h'-04'\(bu\h'+03'\c
  2318. .\}
  2319. .el \{\
  2320. .sp -1
  2321. .IP \(bu 2.3
  2322. .\}
  2323. max\-upload\-limit
  2324. .RE
  2325. .sp
  2326. .RS 4
  2327. .ie n \{\
  2328. \h'-04'\(bu\h'+03'\c
  2329. .\}
  2330. .el \{\
  2331. .sp -1
  2332. .IP \(bu 2.3
  2333. .\}
  2334. seed\-ratio
  2335. .RE
  2336. .sp
  2337. .RS 4
  2338. .ie n \{\
  2339. \h'-04'\(bu\h'+03'\c
  2340. .\}
  2341. .el \{\
  2342. .sp -1
  2343. .IP \(bu 2.3
  2344. .\}
  2345. seed\-time
  2346. .RE
  2347. .sp
  2348. .RS 4
  2349. .ie n \{\
  2350. \h'-04'\(bu\h'+03'\c
  2351. .\}
  2352. .el \{\
  2353. .sp -1
  2354. .IP \(bu 2.3
  2355. .\}
  2356. follow\-metalink
  2357. .RE
  2358. .sp
  2359. .RS 4
  2360. .ie n \{\
  2361. \h'-04'\(bu\h'+03'\c
  2362. .\}
  2363. .el \{\
  2364. .sp -1
  2365. .IP \(bu 2.3
  2366. .\}
  2367. metalink\-servers
  2368. .RE
  2369. .sp
  2370. .RS 4
  2371. .ie n \{\
  2372. \h'-04'\(bu\h'+03'\c
  2373. .\}
  2374. .el \{\
  2375. .sp -1
  2376. .IP \(bu 2.3
  2377. .\}
  2378. metalink\-language
  2379. .RE
  2380. .sp
  2381. .RS 4
  2382. .ie n \{\
  2383. \h'-04'\(bu\h'+03'\c
  2384. .\}
  2385. .el \{\
  2386. .sp -1
  2387. .IP \(bu 2.3
  2388. .\}
  2389. metalink\-location
  2390. .RE
  2391. .sp
  2392. .RS 4
  2393. .ie n \{\
  2394. \h'-04'\(bu\h'+03'\c
  2395. .\}
  2396. .el \{\
  2397. .sp -1
  2398. .IP \(bu 2.3
  2399. .\}
  2400. metalink\-os
  2401. .RE
  2402. .sp
  2403. .RS 4
  2404. .ie n \{\
  2405. \h'-04'\(bu\h'+03'\c
  2406. .\}
  2407. .el \{\
  2408. .sp -1
  2409. .IP \(bu 2.3
  2410. .\}
  2411. metalink\-version
  2412. .RE
  2413. .sp
  2414. .RS 4
  2415. .ie n \{\
  2416. \h'-04'\(bu\h'+03'\c
  2417. .\}
  2418. .el \{\
  2419. .sp -1
  2420. .IP \(bu 2.3
  2421. .\}
  2422. metalink\-preferred\-protocol
  2423. .RE
  2424. .sp
  2425. .RS 4
  2426. .ie n \{\
  2427. \h'-04'\(bu\h'+03'\c
  2428. .\}
  2429. .el \{\
  2430. .sp -1
  2431. .IP \(bu 2.3
  2432. .\}
  2433. metalink\-enable\-unique\-protocol
  2434. .RE
  2435. .sp
  2436. .RS 4
  2437. .ie n \{\
  2438. \h'-04'\(bu\h'+03'\c
  2439. .\}
  2440. .el \{\
  2441. .sp -1
  2442. .IP \(bu 2.3
  2443. .\}
  2444. allow\-overwrite
  2445. .RE
  2446. .sp
  2447. .RS 4
  2448. .ie n \{\
  2449. \h'-04'\(bu\h'+03'\c
  2450. .\}
  2451. .el \{\
  2452. .sp -1
  2453. .IP \(bu 2.3
  2454. .\}
  2455. allow\-piece\-length\-change
  2456. .RE
  2457. .sp
  2458. .RS 4
  2459. .ie n \{\
  2460. \h'-04'\(bu\h'+03'\c
  2461. .\}
  2462. .el \{\
  2463. .sp -1
  2464. .IP \(bu 2.3
  2465. .\}
  2466. async\-dns
  2467. .RE
  2468. .sp
  2469. .RS 4
  2470. .ie n \{\
  2471. \h'-04'\(bu\h'+03'\c
  2472. .\}
  2473. .el \{\
  2474. .sp -1
  2475. .IP \(bu 2.3
  2476. .\}
  2477. auto\-file\-renaming
  2478. .RE
  2479. .sp
  2480. .RS 4
  2481. .ie n \{\
  2482. \h'-04'\(bu\h'+03'\c
  2483. .\}
  2484. .el \{\
  2485. .sp -1
  2486. .IP \(bu 2.3
  2487. .\}
  2488. file\-allocation
  2489. .RE
  2490. .sp
  2491. .RS 4
  2492. .ie n \{\
  2493. \h'-04'\(bu\h'+03'\c
  2494. .\}
  2495. .el \{\
  2496. .sp -1
  2497. .IP \(bu 2.3
  2498. .\}
  2499. max\-download\-limit
  2500. .RE
  2501. .sp
  2502. .RS 4
  2503. .ie n \{\
  2504. \h'-04'\(bu\h'+03'\c
  2505. .\}
  2506. .el \{\
  2507. .sp -1
  2508. .IP \(bu 2.3
  2509. .\}
  2510. no\-file\-allocation\-limit
  2511. .RE
  2512. .sp
  2513. .RS 4
  2514. .ie n \{\
  2515. \h'-04'\(bu\h'+03'\c
  2516. .\}
  2517. .el \{\
  2518. .sp -1
  2519. .IP \(bu 2.3
  2520. .\}
  2521. parameterized\-uri
  2522. .RE
  2523. .sp
  2524. .RS 4
  2525. .ie n \{\
  2526. \h'-04'\(bu\h'+03'\c
  2527. .\}
  2528. .el \{\
  2529. .sp -1
  2530. .IP \(bu 2.3
  2531. .\}
  2532. realtime\-chunk\-checksum
  2533. .RE
  2534. .sp
  2535. .RS 4
  2536. .ie n \{\
  2537. \h'-04'\(bu\h'+03'\c
  2538. .\}
  2539. .el \{\
  2540. .sp -1
  2541. .IP \(bu 2.3
  2542. .\}
  2543. remove\-control\-file
  2544. .RE
  2545. .sp
  2546. .RS 4
  2547. .ie n \{\
  2548. \h'-04'\(bu\h'+03'\c
  2549. .\}
  2550. .el \{\
  2551. .sp -1
  2552. .IP \(bu 2.3
  2553. .\}
  2554. always\-resume
  2555. .RE
  2556. .sp
  2557. .RS 4
  2558. .ie n \{\
  2559. \h'-04'\(bu\h'+03'\c
  2560. .\}
  2561. .el \{\
  2562. .sp -1
  2563. .IP \(bu 2.3
  2564. .\}
  2565. max\-resume\-failure\-tries
  2566. .RE
  2567. .sp
  2568. .RS 4
  2569. .ie n \{\
  2570. \h'-04'\(bu\h'+03'\c
  2571. .\}
  2572. .el \{\
  2573. .sp -1
  2574. .IP \(bu 2.3
  2575. .\}
  2576. http\-accept\-gzip
  2577. .RE
  2578. .sp
  2579. .RS 4
  2580. .ie n \{\
  2581. \h'-04'\(bu\h'+03'\c
  2582. .\}
  2583. .el \{\
  2584. .sp -1
  2585. .IP \(bu 2.3
  2586. .\}
  2587. max\-connection\-per\-server
  2588. .RE
  2589. .sp
  2590. .RS 4
  2591. .ie n \{\
  2592. \h'-04'\(bu\h'+03'\c
  2593. .\}
  2594. .el \{\
  2595. .sp -1
  2596. .IP \(bu 2.3
  2597. .\}
  2598. min\-split\-size
  2599. .RE
  2600. .sp
  2601. .RS 4
  2602. .ie n \{\
  2603. \h'-04'\(bu\h'+03'\c
  2604. .\}
  2605. .el \{\
  2606. .sp -1
  2607. .IP \(bu 2.3
  2608. .\}
  2609. conditional\-get
  2610. .RE
  2611. .sp
  2612. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
  2613. .sp
  2614. For example, the content of uri\&.txt is
  2615. .sp
  2616. .if n \{\
  2617. .RS 4
  2618. .\}
  2619. .nf
  2620. http://server/file\&.iso http://mirror/file\&.iso
  2621. dir=/iso_images
  2622. out=file\&.img
  2623. http://foo/bar
  2624. .fi
  2625. .if n \{\
  2626. .RE
  2627. .\}
  2628. .sp
  2629. 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\&.
  2630. .sp
  2631. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  2632. .SS "Server Performance Profile"
  2633. .sp
  2634. 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:
  2635. .PP
  2636. host
  2637. .RS 4
  2638. Hostname of the server\&. Required\&.
  2639. .RE
  2640. .PP
  2641. protocol
  2642. .RS 4
  2643. Protocol for this profile, such as ftp, http\&. Required\&.
  2644. .RE
  2645. .PP
  2646. dl_speed
  2647. .RS 4
  2648. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  2649. .RE
  2650. .PP
  2651. sc_avg_speed
  2652. .RS 4
  2653. 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\&.
  2654. .RE
  2655. .PP
  2656. mc_avg_speed
  2657. .RS 4
  2658. 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\&.
  2659. .RE
  2660. .PP
  2661. counter
  2662. .RS 4
  2663. How many times the server is used\&. Currently this value is only used by AdaptiveURISelector\&. Optional\&.
  2664. .RE
  2665. .PP
  2666. last_updated
  2667. .RS 4
  2668. Last contact time in GMT with this server, specified in the seconds since the Epoch(00:00:00 on January 1, 1970, UTC)\&. Required\&.
  2669. .RE
  2670. .PP
  2671. status
  2672. .RS 4
  2673. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  2674. .RE
  2675. .sp
  2676. 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\&.
  2677. .sp
  2678. An example follows:
  2679. .sp
  2680. .if n \{\
  2681. .RS 4
  2682. .\}
  2683. .nf
  2684. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  2685. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  2686. .fi
  2687. .if n \{\
  2688. .RE
  2689. .\}
  2690. .SH "XML-RPC INTERFACE"
  2691. .SS "Terminology"
  2692. .PP
  2693. GID
  2694. .RS 4
  2695. 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\&.
  2696. .RE
  2697. .SS "Methods"
  2698. .sp
  2699. \fBaria2\&.addUri\fR \fIuris[, options[, position]]\fR
  2700. .sp
  2701. 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\&.
  2702. .sp
  2703. \fBaria2\&.addTorrent\fR \fItorrent[, uris[, options[, position]]]\fR
  2704. .sp
  2705. 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\&.
  2706. .sp
  2707. \fBaria2\&.addMetalink\fR \fImetalink[, options[, position]]\fR
  2708. .sp
  2709. 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\&.
  2710. .sp
  2711. \fBaria2\&.remove\fR \fIgid\fR
  2712. .sp
  2713. 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\&.
  2714. .sp
  2715. \fBaria2\&.forceRemove\fR \fIgid\fR
  2716. .sp
  2717. 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\&.
  2718. .sp
  2719. \fBaria2\&.pause\fR \fIgid\fR
  2720. .sp
  2721. 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\&.
  2722. .sp
  2723. \fBaria2\&.pauseAll\fR
  2724. .sp
  2725. This method is equal to calling \fBaria2\&.pause\fR for every active/waiting download\&. This methods returns "OK" for success\&.
  2726. .sp
  2727. \fBaria2\&.forcePause\fR \fIpid\fR
  2728. .sp
  2729. 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\&.
  2730. .sp
  2731. \fBaria2\&.forcePauseAll\fR
  2732. .sp
  2733. This method is equal to calling \fBaria2\&.forcePause\fR for every active/waiting download\&. This methods returns "OK" for success\&.
  2734. .sp
  2735. \fBaria2\&.unpause\fR \fIgid\fR
  2736. .sp
  2737. 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\&.
  2738. .sp
  2739. \fBaria2\&.unpauseAll\fR
  2740. .sp
  2741. This method is equal to calling \fBaria2\&.unpause\fR for every active/waiting download\&. This methods returns "OK" for success\&.
  2742. .sp
  2743. \fBaria2\&.tellStatus\fR \fIgid\fR
  2744. .sp
  2745. 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\&.
  2746. .PP
  2747. gid
  2748. .RS 4
  2749. GID of this download\&.
  2750. .RE
  2751. .PP
  2752. status
  2753. .RS 4
  2754. "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\&.
  2755. .RE
  2756. .PP
  2757. totalLength
  2758. .RS 4
  2759. Total length of this download in bytes\&.
  2760. .RE
  2761. .PP
  2762. completedLength
  2763. .RS 4
  2764. Completed length of this download in bytes\&.
  2765. .RE
  2766. .PP
  2767. uploadLength
  2768. .RS 4
  2769. Uploaded length of this download in bytes\&.
  2770. .RE
  2771. .PP
  2772. bitfield
  2773. .RS 4
  2774. 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\&.
  2775. .RE
  2776. .PP
  2777. downloadSpeed
  2778. .RS 4
  2779. Download speed of this download measured in bytes/sec\&.
  2780. .RE
  2781. .PP
  2782. uploadSpeed
  2783. .RS 4
  2784. Upload speed of this download measured in bytes/sec\&.
  2785. .RE
  2786. .PP
  2787. infoHash
  2788. .RS 4
  2789. InfoHash\&. BitTorrent only\&.
  2790. .RE
  2791. .PP
  2792. numSeeders
  2793. .RS 4
  2794. The number of seeders the client has connected to\&. BitTorrent only\&.
  2795. .RE
  2796. .PP
  2797. pieceLength
  2798. .RS 4
  2799. Piece length in bytes\&.
  2800. .RE
  2801. .PP
  2802. numPieces
  2803. .RS 4
  2804. The number of pieces\&.
  2805. .RE
  2806. .PP
  2807. connections
  2808. .RS 4
  2809. The number of peers/servers the client has connected to\&.
  2810. .RE
  2811. .PP
  2812. errorCode
  2813. .RS 4
  2814. 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\&.
  2815. .RE
  2816. .PP
  2817. followedBy
  2818. .RS 4
  2819. 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
  2820. \fB\-\-follow\-metalink\fR
  2821. 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\&.
  2822. .RE
  2823. .PP
  2824. belongsTo
  2825. .RS 4
  2826. 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\&.
  2827. .RE
  2828. .PP
  2829. dir
  2830. .RS 4
  2831. Directory to save files\&. This key is not available for stopped downloads\&.
  2832. .RE
  2833. .PP
  2834. files
  2835. .RS 4
  2836. Returns the list of files\&. The element of list is the same struct used in
  2837. \fBaria2\&.getFiles\fR
  2838. method\&.
  2839. .RE
  2840. .PP
  2841. bittorrent
  2842. .RS 4
  2843. Struct which contains information retrieved from \&.torrent file\&. BitTorrent only\&. It contains following keys\&.
  2844. .PP
  2845. announceList
  2846. .RS 4
  2847. List of lists of announce URI\&. If \&.torrent file contains announce and no announce\-list, announce is converted to announce\-list format\&.
  2848. .RE
  2849. .PP
  2850. comment
  2851. .RS 4
  2852. The comment for the torrent\&. comment\&.utf\-8 is used if available\&.
  2853. .RE
  2854. .PP
  2855. creationDate
  2856. .RS 4
  2857. The creation time of the torrent\&. The value is an integer since the Epoch, measured in seconds\&.
  2858. .RE
  2859. .PP
  2860. mode
  2861. .RS 4
  2862. File mode of the torrent\&. The value is either
  2863. \fIsingle\fR
  2864. or
  2865. \fImulti\fR\&.
  2866. .RE
  2867. .PP
  2868. info
  2869. .RS 4
  2870. Struct which contains data from Info dictionary\&. It contains following keys\&.
  2871. .PP
  2872. name
  2873. .RS 4
  2874. name in info dictionary\&. name\&.utf\-8 is used if available\&.
  2875. .RE
  2876. .RE
  2877. .RE
  2878. .sp
  2879. \fBaria2\&.getUris\fR \fIgid\fR
  2880. .sp
  2881. 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\&.
  2882. .PP
  2883. uri
  2884. .RS 4
  2885. URI
  2886. .RE
  2887. .PP
  2888. status
  2889. .RS 4
  2890. \fIused\fR
  2891. if the URI is already used\&.
  2892. \fIwaiting\fR
  2893. if the URI is waiting in the queue\&.
  2894. .RE
  2895. .sp
  2896. \fBaria2\&.getFiles\fR \fIgid\fR
  2897. .sp
  2898. 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\&.
  2899. .PP
  2900. index
  2901. .RS 4
  2902. Index of file\&. Starting with 1\&. This is the same order with the files in multi\-file torrent\&.
  2903. .RE
  2904. .PP
  2905. path
  2906. .RS 4
  2907. File path\&.
  2908. .RE
  2909. .PP
  2910. length
  2911. .RS 4
  2912. File size in bytes\&.
  2913. .RE
  2914. .PP
  2915. selected
  2916. .RS 4
  2917. "true" if this file is selected by
  2918. \fB\-\-select\-file\fR
  2919. option\&. If
  2920. \fB\-\-select\-file\fR
  2921. is not specified or this is single torrent or no torrent download, this value is always "true"\&. Otherwise "false"\&.
  2922. .RE
  2923. .PP
  2924. uris
  2925. .RS 4
  2926. Returns the list of URI for this file\&. The element of list is the same struct used in
  2927. \fBaria2\&.getUris\fR
  2928. method\&.
  2929. .RE
  2930. .sp
  2931. \fBaria2\&.getPeers\fR \fIgid\fR
  2932. .sp
  2933. 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\&.
  2934. .PP
  2935. peerId
  2936. .RS 4
  2937. Percent\-encoded peer ID\&.
  2938. .RE
  2939. .PP
  2940. ip
  2941. .RS 4
  2942. IP address of the peer\&.
  2943. .RE
  2944. .PP
  2945. port
  2946. .RS 4
  2947. Port number of the peer\&.
  2948. .RE
  2949. .PP
  2950. bitfield
  2951. .RS 4
  2952. 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\&.
  2953. .RE
  2954. .PP
  2955. amChoking
  2956. .RS 4
  2957. "true" if this client is choking the peer\&. Otherwise "false"\&.
  2958. .RE
  2959. .PP
  2960. peerChoking
  2961. .RS 4
  2962. "true" if the peer is choking this client\&. Otherwise "false"\&.
  2963. .RE
  2964. .PP
  2965. downloadSpeed
  2966. .RS 4
  2967. Download speed (byte/sec) that this client obtains from the peer\&.
  2968. .RE
  2969. .PP
  2970. uploadSpeed
  2971. .RS 4
  2972. Upload speed(byte/sec) that this client uploads to the peer\&.
  2973. .RE
  2974. .PP
  2975. seeder
  2976. .RS 4
  2977. "true" is this client is a seeder\&. Otherwise "false"\&.
  2978. .RE
  2979. .sp
  2980. \fBaria2\&.getServers\fR \fIgid\fR
  2981. .sp
  2982. 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\&.
  2983. .PP
  2984. index
  2985. .RS 4
  2986. Index of file\&. Starting with 1\&. This is the same order with the files in multi\-file torrent\&.
  2987. .RE
  2988. .PP
  2989. servers
  2990. .RS 4
  2991. The list of struct which contains following keys\&.
  2992. .PP
  2993. uri
  2994. .RS 4
  2995. URI originally added\&.
  2996. .RE
  2997. .PP
  2998. currentUri
  2999. .RS 4
  3000. This is the URI currently used for downloading\&. If redirection is involved, currentUri and uri may differ\&.
  3001. .RE
  3002. .PP
  3003. downloadSpeed
  3004. .RS 4
  3005. Download speed (byte/sec)
  3006. .RE
  3007. .RE
  3008. .sp
  3009. \fBaria2\&.tellActive\fR
  3010. .sp
  3011. 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\&.
  3012. .sp
  3013. \fBaria2\&.tellWaiting\fR \fIoffset, num\fR
  3014. .sp
  3015. 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\&.
  3016. .sp
  3017. If offset is a positive integer, this method returns downloads in the range of [\fIoffset\fR, \fIoffset\fR+\fInum\fR)\&.
  3018. .sp
  3019. \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\&.
  3020. .sp
  3021. 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"]\&.
  3022. .sp
  3023. The response is of type array and its element is the same struct returned by \fBaria2\&.tellStatus\fR method\&.
  3024. .sp
  3025. \fBaria2\&.tellStopped\fR \fIoffset, num\fR
  3026. .sp
  3027. 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\&.
  3028. .sp
  3029. \fIoffset\fR and \fInum\fR have the same semantics as \fBaria2\&.tellWaiting\fR method\&.
  3030. .sp
  3031. The response is of type array and its element is the same struct returned by \fBaria2\&.tellStatus\fR method\&.
  3032. .sp
  3033. \fBaria2\&.changePosition\fR \fIgid, pos, how\fR
  3034. .sp
  3035. 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\&.
  3036. .sp
  3037. 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)\&.
  3038. .sp
  3039. \fBaria2\&.changeUri\fR \fIgid, fileIndex, delUris, addUris[, position]\fR
  3040. .sp
  3041. 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\&.
  3042. .sp
  3043. \fBaria2\&.getOption\fR \fIgid\fR
  3044. .sp
  3045. 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\&.
  3046. .sp
  3047. \fBaria2\&.changeOption\fR \fIgid, options\fR
  3048. .sp
  3049. 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\&.
  3050. .sp
  3051. \fBaria2\&.getGlobalOption\fR
  3052. .sp
  3053. 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\&.
  3054. .sp
  3055. \fBaria2\&.changeGlobalOption\fR \fIoptions\fR
  3056. .sp
  3057. 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\&.
  3058. .sp
  3059. \fBaria2\&.purgeDownloadResult\fR
  3060. .sp
  3061. This method purges completed/error/removed downloads to free memory\&. This method returns "OK"\&.
  3062. .sp
  3063. \fBaria2\&.getVersion\fR
  3064. .sp
  3065. This method returns version of the program and the list of enabled features\&. The response is of type struct and contains following keys\&.
  3066. .PP
  3067. version
  3068. .RS 4
  3069. Version number of the program in string\&.
  3070. .RE
  3071. .PP
  3072. enabledFeatures
  3073. .RS 4
  3074. List of enabled features\&. Each feature name is of type string\&.
  3075. .RE
  3076. .sp
  3077. \fBaria2\&.getSessionInfo\fR
  3078. .sp
  3079. This method returns session information\&. The response is of type struct and contains following key\&.
  3080. .PP
  3081. sessionId
  3082. .RS 4
  3083. Session ID, which is generated each time when aria2 is invoked\&.
  3084. .RE
  3085. .sp
  3086. \fBaria2\&.shutdown\fR
  3087. .sp
  3088. This method shutdowns aria2\&. This method returns "OK"\&.
  3089. .sp
  3090. \fBaria2\&.forceShutdown\fR
  3091. .sp
  3092. 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"\&.
  3093. .sp
  3094. \fBsystem\&.multicall\fR \fImethods\fR
  3095. .sp
  3096. 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\&.
  3097. .SS "Error Handling"
  3098. .sp
  3099. In case of error, aria2 returns faultCode=1 and the error message in faultString\&.
  3100. .SS "Options"
  3101. .sp
  3102. Same options for \fB\-i\fR list are available\&. See \fBInput File\fR subsection for complete list of options\&.
  3103. .sp
  3104. In the option struct, name element is option name(without preceding "\-\-") and value element is argument as string\&.
  3105. .sp
  3106. .if n \{\
  3107. .RS 4
  3108. .\}
  3109. .nf
  3110. <struct>
  3111. <member>
  3112. <name>split</name>
  3113. <value><string>1</string></value>
  3114. </member>
  3115. <member>
  3116. <name>http\-proxy</name>
  3117. <value><string>http://proxy/</string></value>
  3118. </member>
  3119. </struct>
  3120. .fi
  3121. .if n \{\
  3122. .RE
  3123. .\}
  3124. .sp
  3125. \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\&.
  3126. .sp
  3127. .if n \{\
  3128. .RS 4
  3129. .\}
  3130. .nf
  3131. <struct>
  3132. <member>
  3133. <name>header</name>
  3134. <value>
  3135. <array>
  3136. <data>
  3137. <value><string>Accept\-Language: ja</string></value>
  3138. <value><string>Accept\-Charset: utf\-8</string></value>
  3139. </data>
  3140. </array>
  3141. </value>
  3142. </member>
  3143. </struct>
  3144. .fi
  3145. .if n \{\
  3146. .RE
  3147. .\}
  3148. .SS "Sample XML\-RPC Client Code"
  3149. .sp
  3150. 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\&.
  3151. .sp
  3152. .if n \{\
  3153. .RS 4
  3154. .\}
  3155. .nf
  3156. #!/usr/bin/env ruby
  3157. require \*(Aqxmlrpc/client\*(Aq
  3158. require \*(Aqpp\*(Aq
  3159. client=XMLRPC::Client\&.new2("http://localhost:6800/rpc")
  3160. options={ "dir" => "/downloads" }
  3161. result=client\&.call("aria2\&.addUri", [ "http://localhost/aria2\&.tar\&.bz2" ], options)
  3162. pp result
  3163. .fi
  3164. .if n \{\
  3165. .RE
  3166. .\}
  3167. .sp
  3168. If you are a Python lover, you can use xmlrpclib(for Python3\&.x, use xmlrpc\&.client instead) to interact with aria2\&.
  3169. .sp
  3170. .if n \{\
  3171. .RS 4
  3172. .\}
  3173. .nf
  3174. import xmlrpclib
  3175. from pprint import pprint
  3176. s = xmlrpclib\&.ServerProxy("http://localhost:6800/rpc")
  3177. r = s\&.aria2\&.addUri(["http://localhost/aria2\&.tar\&.bz2"], {"dir":"/downloads"})
  3178. pprint(r)
  3179. .fi
  3180. .if n \{\
  3181. .RE
  3182. .\}
  3183. .SH "EXAMPLE"
  3184. .SS "HTTP/FTP Segmented Download"
  3185. .sp
  3186. .it 1 an-trap
  3187. .nr an-no-space-flag 1
  3188. .nr an-break-flag 1
  3189. .br
  3190. .ps +1
  3191. \fBDownload a file\fR
  3192. .RS 4
  3193. .sp
  3194. .if n \{\
  3195. .RS 4
  3196. .\}
  3197. .nf
  3198. aria2c "http://host/file\&.zip"
  3199. .fi
  3200. .if n \{\
  3201. .RE
  3202. .\}
  3203. .if n \{\
  3204. .sp
  3205. .\}
  3206. .RS 4
  3207. .it 1 an-trap
  3208. .nr an-no-space-flag 1
  3209. .nr an-break-flag 1
  3210. .br
  3211. .ps +1
  3212. \fBNote\fR
  3213. .ps -1
  3214. .br
  3215. .sp
  3216. 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\&.
  3217. .sp .5v
  3218. .RE
  3219. .RE
  3220. .sp
  3221. .it 1 an-trap
  3222. .nr an-no-space-flag 1
  3223. .nr an-break-flag 1
  3224. .br
  3225. .ps +1
  3226. \fBDownload a file from 2 different HTTP servers\fR
  3227. .RS 4
  3228. .sp
  3229. .if n \{\
  3230. .RS 4
  3231. .\}
  3232. .nf
  3233. aria2c "http://host/file\&.zip" "http://mirror/file\&.zip"
  3234. .fi
  3235. .if n \{\
  3236. .RE
  3237. .\}
  3238. .RE
  3239. .sp
  3240. .it 1 an-trap
  3241. .nr an-no-space-flag 1
  3242. .nr an-break-flag 1
  3243. .br
  3244. .ps +1
  3245. \fBDownload a file from HTTP and FTP servers\fR
  3246. .RS 4
  3247. .sp
  3248. .if n \{\
  3249. .RS 4
  3250. .\}
  3251. .nf
  3252. aria2c "http://host1/file\&.zip" "ftp://host2/file\&.zip"
  3253. .fi
  3254. .if n \{\
  3255. .RE
  3256. .\}
  3257. .RE
  3258. .sp
  3259. .it 1 an-trap
  3260. .nr an-no-space-flag 1
  3261. .nr an-break-flag 1
  3262. .br
  3263. .ps +1
  3264. \fBDownload files listed in a text file concurrently\fR
  3265. .RS 4
  3266. .sp
  3267. .if n \{\
  3268. .RS 4
  3269. .\}
  3270. .nf
  3271. aria2c \-ifiles\&.txt \-j2
  3272. .fi
  3273. .if n \{\
  3274. .RE
  3275. .\}
  3276. .if n \{\
  3277. .sp
  3278. .\}
  3279. .RS 4
  3280. .it 1 an-trap
  3281. .nr an-no-space-flag 1
  3282. .nr an-break-flag 1
  3283. .br
  3284. .ps +1
  3285. \fBNote\fR
  3286. .ps -1
  3287. .br
  3288. .sp
  3289. \-j option specifies the number of parallel downloads\&.
  3290. .sp .5v
  3291. .RE
  3292. .RE
  3293. .sp
  3294. .it 1 an-trap
  3295. .nr an-no-space-flag 1
  3296. .nr an-break-flag 1
  3297. .br
  3298. .ps +1
  3299. \fBUsing proxy\fR
  3300. .RS 4
  3301. .sp
  3302. For HTTP:
  3303. .sp
  3304. .if n \{\
  3305. .RS 4
  3306. .\}
  3307. .nf
  3308. aria2c \-\-http\-proxy="http://proxy:8080" "http://host/file"
  3309. .fi
  3310. .if n \{\
  3311. .RE
  3312. .\}
  3313. .sp
  3314. .if n \{\
  3315. .RS 4
  3316. .\}
  3317. .nf
  3318. aria2c \-\-http\-proxy="http://proxy:8080" \-\-no\-proxy="localhost,127\&.0\&.0\&.1,192\&.168\&.0\&.0/16" "http://host/file"
  3319. .fi
  3320. .if n \{\
  3321. .RE
  3322. .\}
  3323. .sp
  3324. For FTP:
  3325. .sp
  3326. .if n \{\
  3327. .RS 4
  3328. .\}
  3329. .nf
  3330. aria2c \-\-ftp\-proxy="http://proxy:8080" "ftp://host/file"
  3331. .fi
  3332. .if n \{\
  3333. .RE
  3334. .\}
  3335. .if n \{\
  3336. .sp
  3337. .\}
  3338. .RS 4
  3339. .it 1 an-trap
  3340. .nr an-no-space-flag 1
  3341. .nr an-break-flag 1
  3342. .br
  3343. .ps +1
  3344. \fBNote\fR
  3345. .ps -1
  3346. .br
  3347. .sp
  3348. 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\&.
  3349. .sp .5v
  3350. .RE
  3351. .RE
  3352. .sp
  3353. .it 1 an-trap
  3354. .nr an-no-space-flag 1
  3355. .nr an-break-flag 1
  3356. .br
  3357. .ps +1
  3358. \fBProxy with authorization\fR
  3359. .RS 4
  3360. .sp
  3361. .if n \{\
  3362. .RS 4
  3363. .\}
  3364. .nf
  3365. aria2c \-\-http\-proxy="http://username:password@proxy:8080" "http://host/file"
  3366. .fi
  3367. .if n \{\
  3368. .RE
  3369. .\}
  3370. .sp
  3371. .if n \{\
  3372. .RS 4
  3373. .\}
  3374. .nf
  3375. aria2c \-\-http\-proxy="http://proxy:8080" \-\-http\-proxy\-user="username" \-\-http\-proxy\-passwd="password" "http://host/file"
  3376. .fi
  3377. .if n \{\
  3378. .RE
  3379. .\}
  3380. .RE
  3381. .SS "Metalink Download"
  3382. .sp
  3383. .it 1 an-trap
  3384. .nr an-no-space-flag 1
  3385. .nr an-break-flag 1
  3386. .br
  3387. .ps +1
  3388. \fBDownload files with remote Metalink\fR
  3389. .RS 4
  3390. .sp
  3391. .if n \{\
  3392. .RS 4
  3393. .\}
  3394. .nf
  3395. aria2c \-\-follow\-metalink=mem "http://host/file\&.metalink"
  3396. .fi
  3397. .if n \{\
  3398. .RE
  3399. .\}
  3400. .RE
  3401. .sp
  3402. .it 1 an-trap
  3403. .nr an-no-space-flag 1
  3404. .nr an-break-flag 1
  3405. .br
  3406. .ps +1
  3407. \fBDownload using a local metalink file\fR
  3408. .RS 4
  3409. .sp
  3410. .if n \{\
  3411. .RS 4
  3412. .\}
  3413. .nf
  3414. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  3415. .fi
  3416. .if n \{\
  3417. .RE
  3418. .\}
  3419. .if n \{\
  3420. .sp
  3421. .\}
  3422. .RS 4
  3423. .it 1 an-trap
  3424. .nr an-no-space-flag 1
  3425. .nr an-break-flag 1
  3426. .br
  3427. .ps +1
  3428. \fBNote\fR
  3429. .ps -1
  3430. .br
  3431. .sp
  3432. To stop a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  3433. .sp .5v
  3434. .RE
  3435. .RE
  3436. .sp
  3437. .it 1 an-trap
  3438. .nr an-no-space-flag 1
  3439. .nr an-break-flag 1
  3440. .br
  3441. .ps +1
  3442. \fBDownload several local metalink files\fR
  3443. .RS 4
  3444. .sp
  3445. .if n \{\
  3446. .RS 4
  3447. .\}
  3448. .nf
  3449. aria2c \-j2 file1\&.metalink file2\&.metalink
  3450. .fi
  3451. .if n \{\
  3452. .RE
  3453. .\}
  3454. .RE
  3455. .sp
  3456. .it 1 an-trap
  3457. .nr an-no-space-flag 1
  3458. .nr an-break-flag 1
  3459. .br
  3460. .ps +1
  3461. \fBDownload only selected files using index\fR
  3462. .RS 4
  3463. .sp
  3464. .if n \{\
  3465. .RS 4
  3466. .\}
  3467. .nf
  3468. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  3469. .fi
  3470. .if n \{\
  3471. .RE
  3472. .\}
  3473. .if n \{\
  3474. .sp
  3475. .\}
  3476. .RS 4
  3477. .it 1 an-trap
  3478. .nr an-no-space-flag 1
  3479. .nr an-break-flag 1
  3480. .br
  3481. .ps +1
  3482. \fBNote\fR
  3483. .ps -1
  3484. .br
  3485. .sp
  3486. The index is printed to the console using \-S option\&.
  3487. .sp .5v
  3488. .RE
  3489. .RE
  3490. .sp
  3491. .it 1 an-trap
  3492. .nr an-no-space-flag 1
  3493. .nr an-break-flag 1
  3494. .br
  3495. .ps +1
  3496. \fBDownload a file using a local .metalink file with user preference\fR
  3497. .RS 4
  3498. .sp
  3499. .if n \{\
  3500. .RS 4
  3501. .\}
  3502. .nf
  3503. aria2c \-\-metalink\-location=jp,us \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  3504. .fi
  3505. .if n \{\
  3506. .RE
  3507. .\}
  3508. .RE
  3509. .SS "BitTorrent Download"
  3510. .sp
  3511. .it 1 an-trap
  3512. .nr an-no-space-flag 1
  3513. .nr an-break-flag 1
  3514. .br
  3515. .ps +1
  3516. \fBDownload files from remote BitTorrent file\fR
  3517. .RS 4
  3518. .sp
  3519. .if n \{\
  3520. .RS 4
  3521. .\}
  3522. .nf
  3523. aria2c \-\-follow\-torrent=mem "http://host/file\&.torrent"
  3524. .fi
  3525. .if n \{\
  3526. .RE
  3527. .\}
  3528. .RE
  3529. .sp
  3530. .it 1 an-trap
  3531. .nr an-no-space-flag 1
  3532. .nr an-break-flag 1
  3533. .br
  3534. .ps +1
  3535. \fBDownload using a local torrent file\fR
  3536. .RS 4
  3537. .sp
  3538. .if n \{\
  3539. .RS 4
  3540. .\}
  3541. .nf
  3542. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  3543. .fi
  3544. .if n \{\
  3545. .RE
  3546. .\}
  3547. .if n \{\
  3548. .sp
  3549. .\}
  3550. .RS 4
  3551. .it 1 an-trap
  3552. .nr an-no-space-flag 1
  3553. .nr an-break-flag 1
  3554. .br
  3555. .ps +1
  3556. \fBNote\fR
  3557. .ps -1
  3558. .br
  3559. .sp
  3560. \-\-max\-upload\-limit specifies the max of upload rate\&.
  3561. .sp .5v
  3562. .RE
  3563. .if n \{\
  3564. .sp
  3565. .\}
  3566. .RS 4
  3567. .it 1 an-trap
  3568. .nr an-no-space-flag 1
  3569. .nr an-break-flag 1
  3570. .br
  3571. .ps +1
  3572. \fBNote\fR
  3573. .ps -1
  3574. .br
  3575. .sp
  3576. To stop a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  3577. .sp .5v
  3578. .RE
  3579. .RE
  3580. .sp
  3581. .it 1 an-trap
  3582. .nr an-no-space-flag 1
  3583. .nr an-break-flag 1
  3584. .br
  3585. .ps +1
  3586. \fBDownload using BitTorrent Magnet URI\fR
  3587. .RS 4
  3588. .sp
  3589. .if n \{\
  3590. .RS 4
  3591. .\}
  3592. .nf
  3593. aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"
  3594. .fi
  3595. .if n \{\
  3596. .RE
  3597. .\}
  3598. .if n \{\
  3599. .sp
  3600. .\}
  3601. .RS 4
  3602. .it 1 an-trap
  3603. .nr an-no-space-flag 1
  3604. .nr an-break-flag 1
  3605. .br
  3606. .ps +1
  3607. \fBNote\fR
  3608. .ps -1
  3609. .br
  3610. .sp
  3611. Don\(cqt forget to quote BitTorrent Magnet URI which includes "&" character with single(\*(Aq) or double(") quotation\&.
  3612. .sp .5v
  3613. .RE
  3614. .RE
  3615. .sp
  3616. .it 1 an-trap
  3617. .nr an-no-space-flag 1
  3618. .nr an-break-flag 1
  3619. .br
  3620. .ps +1
  3621. \fBDownload 2 torrents\fR
  3622. .RS 4
  3623. .sp
  3624. .if n \{\
  3625. .RS 4
  3626. .\}
  3627. .nf
  3628. aria2c \-j2 file1\&.torrent file2\&.torrent
  3629. .fi
  3630. .if n \{\
  3631. .RE
  3632. .\}
  3633. .RE
  3634. .sp
  3635. .it 1 an-trap
  3636. .nr an-no-space-flag 1
  3637. .nr an-break-flag 1
  3638. .br
  3639. .ps +1
  3640. \fBDownload a file using torrent and HTTP/FTP server\fR
  3641. .RS 4
  3642. .sp
  3643. .if n \{\
  3644. .RS 4
  3645. .\}
  3646. .nf
  3647. aria2c \-Ttest\&.torrent "http://host1/file" "ftp://host2/file"
  3648. .fi
  3649. .if n \{\
  3650. .RE
  3651. .\}
  3652. .if n \{\
  3653. .sp
  3654. .\}
  3655. .RS 4
  3656. .it 1 an-trap
  3657. .nr an-no-space-flag 1
  3658. .nr an-break-flag 1
  3659. .br
  3660. .ps +1
  3661. \fBNote\fR
  3662. .ps -1
  3663. .br
  3664. .sp
  3665. Downloading multi file torrent with HTTP/FTP is not supported\&.
  3666. .sp .5v
  3667. .RE
  3668. .RE
  3669. .sp
  3670. .it 1 an-trap
  3671. .nr an-no-space-flag 1
  3672. .nr an-break-flag 1
  3673. .br
  3674. .ps +1
  3675. \fBDownload only selected files using index(usually called "selectable download")\fR
  3676. .RS 4
  3677. .sp
  3678. .if n \{\
  3679. .RS 4
  3680. .\}
  3681. .nf
  3682. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  3683. .fi
  3684. .if n \{\
  3685. .RE
  3686. .\}
  3687. .if n \{\
  3688. .sp
  3689. .\}
  3690. .RS 4
  3691. .it 1 an-trap
  3692. .nr an-no-space-flag 1
  3693. .nr an-break-flag 1
  3694. .br
  3695. .ps +1
  3696. \fBNote\fR
  3697. .ps -1
  3698. .br
  3699. .sp
  3700. The index is printed to the console using \-S option\&.
  3701. .sp .5v
  3702. .RE
  3703. .RE
  3704. .sp
  3705. .it 1 an-trap
  3706. .nr an-no-space-flag 1
  3707. .nr an-break-flag 1
  3708. .br
  3709. .ps +1
  3710. \fBSpecify output filename\fR
  3711. .RS 4
  3712. .sp
  3713. 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:
  3714. .sp
  3715. .if n \{\
  3716. .RS 4
  3717. .\}
  3718. .nf
  3719. idx|path/length
  3720. ===+======================
  3721. 1|dist/base\-2\&.6\&.18\&.iso
  3722. |99\&.9MiB
  3723. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  3724. 2|dist/driver\-2\&.6\&.18\&.iso
  3725. |169\&.0MiB
  3726. \-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
  3727. .fi
  3728. .if n \{\
  3729. .RE
  3730. .\}
  3731. .sp
  3732. 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:
  3733. .sp
  3734. .if n \{\
  3735. .RS 4
  3736. .\}
  3737. .nf
  3738. aria2c \-\-dir=/tmp \-\-index\-out=1=mydir/base\&.iso \-\-index\-out=2=dir/driver\&.iso file\&.torrent
  3739. .fi
  3740. .if n \{\
  3741. .RE
  3742. .\}
  3743. .RE
  3744. .sp
  3745. .it 1 an-trap
  3746. .nr an-no-space-flag 1
  3747. .nr an-break-flag 1
  3748. .br
  3749. .ps +1
  3750. \fBChange the listening port for incoming peer\fR
  3751. .RS 4
  3752. .sp
  3753. .if n \{\
  3754. .RS 4
  3755. .\}
  3756. .nf
  3757. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  3758. .fi
  3759. .if n \{\
  3760. .RE
  3761. .\}
  3762. .if n \{\
  3763. .sp
  3764. .\}
  3765. .RS 4
  3766. .it 1 an-trap
  3767. .nr an-no-space-flag 1
  3768. .nr an-break-flag 1
  3769. .br
  3770. .ps +1
  3771. \fBNote\fR
  3772. .ps -1
  3773. .br
  3774. .sp
  3775. Since aria2 doesn\(cqt configure firewall or router for port forwarding, it\(cqs up to you to do it manually\&.
  3776. .sp .5v
  3777. .RE
  3778. .RE
  3779. .sp
  3780. .it 1 an-trap
  3781. .nr an-no-space-flag 1
  3782. .nr an-break-flag 1
  3783. .br
  3784. .ps +1
  3785. \fBSpecify the condition to stop program after torrent download finished\fR
  3786. .RS 4
  3787. .sp
  3788. .if n \{\
  3789. .RS 4
  3790. .\}
  3791. .nf
  3792. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  3793. .fi
  3794. .if n \{\
  3795. .RE
  3796. .\}
  3797. .if n \{\
  3798. .sp
  3799. .\}
  3800. .RS 4
  3801. .it 1 an-trap
  3802. .nr an-no-space-flag 1
  3803. .nr an-break-flag 1
  3804. .br
  3805. .ps +1
  3806. \fBNote\fR
  3807. .ps -1
  3808. .br
  3809. .sp
  3810. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  3811. .sp .5v
  3812. .RE
  3813. .RE
  3814. .sp
  3815. .it 1 an-trap
  3816. .nr an-no-space-flag 1
  3817. .nr an-break-flag 1
  3818. .br
  3819. .ps +1
  3820. \fBThrottle upload speed\fR
  3821. .RS 4
  3822. .sp
  3823. .if n \{\
  3824. .RS 4
  3825. .\}
  3826. .nf
  3827. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  3828. .fi
  3829. .if n \{\
  3830. .RE
  3831. .\}
  3832. .RE
  3833. .sp
  3834. .it 1 an-trap
  3835. .nr an-no-space-flag 1
  3836. .nr an-break-flag 1
  3837. .br
  3838. .ps +1
  3839. \fBEnable DHT\fR
  3840. .RS 4
  3841. .sp
  3842. .if n \{\
  3843. .RS 4
  3844. .\}
  3845. .nf
  3846. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  3847. .fi
  3848. .if n \{\
  3849. .RE
  3850. .\}
  3851. .if n \{\
  3852. .sp
  3853. .\}
  3854. .RS 4
  3855. .it 1 an-trap
  3856. .nr an-no-space-flag 1
  3857. .nr an-break-flag 1
  3858. .br
  3859. .ps +1
  3860. \fBNote\fR
  3861. .ps -1
  3862. .br
  3863. .sp
  3864. DHT uses udp port\&. Since aria2 doesn\(cqt configure firewall or router for port forwarding, it\(cqs up to you to do it manually\&.
  3865. .sp .5v
  3866. .RE
  3867. .RE
  3868. .SS "More advanced HTTP features"
  3869. .sp
  3870. .it 1 an-trap
  3871. .nr an-no-space-flag 1
  3872. .nr an-break-flag 1
  3873. .br
  3874. .ps +1
  3875. \fBLoad cookies\fR
  3876. .RS 4
  3877. .sp
  3878. .if n \{\
  3879. .RS 4
  3880. .\}
  3881. .nf
  3882. aria2c \-\-load\-cookies=cookies\&.txt "http://host/file\&.zip"
  3883. .fi
  3884. .if n \{\
  3885. .RE
  3886. .\}
  3887. .if n \{\
  3888. .sp
  3889. .\}
  3890. .RS 4
  3891. .it 1 an-trap
  3892. .nr an-no-space-flag 1
  3893. .nr an-break-flag 1
  3894. .br
  3895. .ps +1
  3896. \fBNote\fR
  3897. .ps -1
  3898. .br
  3899. .sp
  3900. You can use Firefox/Mozilla/Chromium\(cqs cookie file without modification\&.
  3901. .sp .5v
  3902. .RE
  3903. .RE
  3904. .sp
  3905. .it 1 an-trap
  3906. .nr an-no-space-flag 1
  3907. .nr an-break-flag 1
  3908. .br
  3909. .ps +1
  3910. \fBResume download started by web browsers or another programs\fR
  3911. .RS 4
  3912. .sp
  3913. .if n \{\
  3914. .RS 4
  3915. .\}
  3916. .nf
  3917. aria2c \-c \-s2 "http://host/partiallydownloadedfile\&.zip"
  3918. .fi
  3919. .if n \{\
  3920. .RE
  3921. .\}
  3922. .RE
  3923. .sp
  3924. .it 1 an-trap
  3925. .nr an-no-space-flag 1
  3926. .nr an-break-flag 1
  3927. .br
  3928. .ps +1
  3929. \fBClient certificate authorization for SSL/TLS\fR
  3930. .RS 4
  3931. .sp
  3932. .if n \{\
  3933. .RS 4
  3934. .\}
  3935. .nf
  3936. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  3937. .fi
  3938. .if n \{\
  3939. .RE
  3940. .\}
  3941. .if n \{\
  3942. .sp
  3943. .\}
  3944. .RS 4
  3945. .it 1 an-trap
  3946. .nr an-no-space-flag 1
  3947. .nr an-break-flag 1
  3948. .br
  3949. .ps +1
  3950. \fBNote\fR
  3951. .ps -1
  3952. .br
  3953. .sp
  3954. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  3955. .sp .5v
  3956. .RE
  3957. .RE
  3958. .sp
  3959. .it 1 an-trap
  3960. .nr an-no-space-flag 1
  3961. .nr an-break-flag 1
  3962. .br
  3963. .ps +1
  3964. \fBVerify peer in SSL/TLS using given CA certificates\fR
  3965. .RS 4
  3966. .sp
  3967. .if n \{\
  3968. .RS 4
  3969. .\}
  3970. .nf
  3971. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  3972. .fi
  3973. .if n \{\
  3974. .RE
  3975. .\}
  3976. .RE
  3977. .SS "And more advanced features"
  3978. .sp
  3979. .it 1 an-trap
  3980. .nr an-no-space-flag 1
  3981. .nr an-break-flag 1
  3982. .br
  3983. .ps +1
  3984. \fBThrottle download speed\fR
  3985. .RS 4
  3986. .sp
  3987. .if n \{\
  3988. .RS 4
  3989. .\}
  3990. .nf
  3991. aria2c \-\-max\-download\-limit=100K file\&.metalink
  3992. .fi
  3993. .if n \{\
  3994. .RE
  3995. .\}
  3996. .RE
  3997. .sp
  3998. .it 1 an-trap
  3999. .nr an-no-space-flag 1
  4000. .nr an-break-flag 1
  4001. .br
  4002. .ps +1
  4003. \fBRepair a damaged download\fR
  4004. .RS 4
  4005. .sp
  4006. .if n \{\
  4007. .RS 4
  4008. .\}
  4009. .nf
  4010. aria2c \-V file\&.metalink
  4011. .fi
  4012. .if n \{\
  4013. .RE
  4014. .\}
  4015. .if n \{\
  4016. .sp
  4017. .\}
  4018. .RS 4
  4019. .it 1 an-trap
  4020. .nr an-no-space-flag 1
  4021. .nr an-break-flag 1
  4022. .br
  4023. .ps +1
  4024. \fBNote\fR
  4025. .ps -1
  4026. .br
  4027. .sp
  4028. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  4029. .sp .5v
  4030. .RE
  4031. .RE
  4032. .sp
  4033. .it 1 an-trap
  4034. .nr an-no-space-flag 1
  4035. .nr an-break-flag 1
  4036. .br
  4037. .ps +1
  4038. \fBDrop connection if download speed is lower than specified value\fR
  4039. .RS 4
  4040. .sp
  4041. .if n \{\
  4042. .RS 4
  4043. .\}
  4044. .nf
  4045. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  4046. .fi
  4047. .if n \{\
  4048. .RE
  4049. .\}
  4050. .RE
  4051. .sp
  4052. .it 1 an-trap
  4053. .nr an-no-space-flag 1
  4054. .nr an-break-flag 1
  4055. .br
  4056. .ps +1
  4057. \fBParameterized URI support\fR
  4058. .RS 4
  4059. .sp
  4060. You can specify set of parts:
  4061. .sp
  4062. .if n \{\
  4063. .RS 4
  4064. .\}
  4065. .nf
  4066. aria2c \-P "http://{host1,host2,host3}/file\&.iso"
  4067. .fi
  4068. .if n \{\
  4069. .RE
  4070. .\}
  4071. .sp
  4072. You can specify numeric sequence:
  4073. .sp
  4074. .if n \{\
  4075. .RS 4
  4076. .\}
  4077. .nf
  4078. aria2c \-Z \-P "http://host/image[000\-100]\&.png"
  4079. .fi
  4080. .if n \{\
  4081. .RE
  4082. .\}
  4083. .sp
  4084. .if n \{\
  4085. .sp
  4086. .\}
  4087. .RS 4
  4088. .it 1 an-trap
  4089. .nr an-no-space-flag 1
  4090. .nr an-break-flag 1
  4091. .br
  4092. .ps +1
  4093. \fBNote\fR
  4094. .ps -1
  4095. .br
  4096. .sp
  4097. \-Z option is required if the all URIs don\(cqt point to the same file, such as the above example\&.
  4098. .sp .5v
  4099. .RE
  4100. .sp
  4101. You can specify step counter:
  4102. .sp
  4103. .if n \{\
  4104. .RS 4
  4105. .\}
  4106. .nf
  4107. aria2c \-Z \-P "http://host/image[A\-Z:2]\&.png"
  4108. .fi
  4109. .if n \{\
  4110. .RE
  4111. .\}
  4112. .RE
  4113. .sp
  4114. .it 1 an-trap
  4115. .nr an-no-space-flag 1
  4116. .nr an-break-flag 1
  4117. .br
  4118. .ps +1
  4119. \fBParallel downloads of arbitrary number of URI,metalink,torrent\fR
  4120. .RS 4
  4121. .sp
  4122. .if n \{\
  4123. .RS 4
  4124. .\}
  4125. .nf
  4126. aria2c \-j3 \-Z "http://host/file1" file2\&.torrent file3\&.metalink
  4127. .fi
  4128. .if n \{\
  4129. .RE
  4130. .\}
  4131. .RE
  4132. .sp
  4133. .it 1 an-trap
  4134. .nr an-no-space-flag 1
  4135. .nr an-break-flag 1
  4136. .br
  4137. .ps +1
  4138. \fBBitTorrent Encryption\fR
  4139. .RS 4
  4140. .sp
  4141. Encrypt whole payload using ARC4:
  4142. .sp
  4143. .if n \{\
  4144. .RS 4
  4145. .\}
  4146. .nf
  4147. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  4148. .fi
  4149. .if n \{\
  4150. .RE
  4151. .\}
  4152. .RE
  4153. .SH "SEE ALSO"
  4154. .sp
  4155. Project Web Site: http://aria2\&.sourceforge\&.net/
  4156. .sp
  4157. aria2 Wiki: http://sourceforge\&.net/apps/trac/aria2/wiki
  4158. .sp
  4159. Metalink Homepage: http://www\&.metalinker\&.org/
  4160. .sp
  4161. The Metalink Download Description Format: http://www\&.rfc\-editor\&.org/rfc/rfc5854\&.txt
  4162. .SH "COPYRIGHT"
  4163. .sp
  4164. Copyright \(co 2006, 2010 Tatsuhiro Tsujikawa
  4165. .sp
  4166. 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\&.
  4167. .sp
  4168. 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\&.
  4169. .sp
  4170. 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
  4171. .sp
  4172. 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\&.