aria2c.1.txt 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The ultra fast download utility
  7. SYNOPSIS
  8. --------
  9. aria2c ['OPTIONS'] ['URL' | 'TORRENT_FILE' | 'METALINK_FILE']...
  10. DESCRIPTION
  11. -----------
  12. aria2 is a utility for downloading files. The supported protocols are
  13. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  14. multiple sources/protocols and tries to utilize your maximum download
  15. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  16. BitTorrent at the same time, while the data downloaded from
  17. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's
  18. chunk checksums, aria2 automatically validates chunks of data while
  19. downloading a file like BitTorrent.
  20. OPTIONS
  21. -------
  22. Basic Options
  23. ~~~~~~~~~~~~~
  24. *-d*, *--dir*=DIR::
  25. The directory to store the downloaded file.
  26. *-i*, *--input-file*=FILE::
  27. Downloads URIs found in FILE. You can specify multiple URIs for a single
  28. entity: separate URIs on a single line using the TAB character.
  29. Reads input from stdin when '-' is specified.
  30. The additional *out* and *dir* options can be specified after each line of
  31. URIs. This optional line must start with white space(s).
  32. See *Input File* subsection for details.
  33. *-l*, *--log*=LOG::
  34. The file name of the log file. If '-' is specified, log is written to
  35. stdout.
  36. *-j*, *--max-concurrent-downloads*=N::
  37. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  38. torrent and metalink. See also *-s* and *-C* option.
  39. Default: '5'
  40. *-V*, *--check-integrity*[='true'|'false']::
  41. Check file integrity by validating piece hashes.
  42. This option has effect only in BitTorrent and Metalink downloads with
  43. chunk checksums.
  44. Use this option to re-download a damaged portion of a file.
  45. Default: 'false'
  46. *-c*, *--continue*::
  47. Continue downloading a partially downloaded file.
  48. Use this option to resume a download started by a web browser or another
  49. program which downloads files sequentially from the beginning.
  50. Currently this option is only applicable to HTTP(S)/FTP downloads.
  51. *-h*, *--help*[=CATEGORY]::
  52. Print usage and exit.
  53. The help messages are classified in several categories.
  54. For example, type "*--help*=http" for detailed explanation for the options
  55. related to HTTP. If no matching category is found, search option name using
  56. a given word in middle match and print the result.
  57. Available Values: 'basic', 'advanced', 'http', 'https', 'ftp', 'metalink',
  58. 'bittorrent', 'all'
  59. Default: 'basic'
  60. HTTP/FTP Options
  61. ~~~~~~~~~~~~~~~~
  62. *--all-proxy*=PROXY::
  63. Use this proxy server for all protocols.
  64. You can override this setting and specify a proxy server for a particular
  65. protocol using *--http-proxy*, *--https-proxy* and *--ftp-proxy* options.
  66. This affects all URLs.
  67. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  68. *--connect-timeout*=SEC::
  69. Set the connect timeout in seconds to establish connection to
  70. HTTP/FTP/proxy server. After the connection is established, this
  71. option makes no effect and *--timeout* option is used instead.
  72. Default: '60'
  73. *--lowest-speed-limit*=SPEED::
  74. Close connection if download speed is lower than or equal to this
  75. value(bytes per sec).
  76. '0' means aria2 does not have a lowest speed limit.
  77. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  78. This option does not affect BitTorrent downloads.
  79. Default: '0'
  80. *--max-file-not-found*=NUM::
  81. If aria2 receives `file not found' status from the remote HTTP/FTP
  82. servers NUM times without getting a single byte, then force the
  83. download to fail. Specify '0' to disable this option. This options is
  84. effective only when using HTTP/FTP servers.
  85. Default: '0'
  86. *-m*, *--max-tries*=N::
  87. Set number of tries. '0' means unlimited.
  88. Default: '5'
  89. *--no-proxy*=DOMAINS::
  90. Specify comma separated hostnames or domains where proxy should not be
  91. used.
  92. *-o*, *--out*=FILE::
  93. The file name of the downloaded file.
  94. [NOTE]
  95. In Metalink or BitTorrent download you cannot specify file name.
  96. The file name specified here is only used when the URLs fed to aria2
  97. are done by command line without *-i*, *-Z* option. For example:
  98. aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"
  99. *--proxy-method*=METHOD::
  100. Set the method to use in proxy request. 'METHOD' is either 'get' or
  101. 'tunnel'. HTTPS downloads always use 'tunnel' regardless of this
  102. option.
  103. Default: 'get'
  104. *-R*, *--remote-time*[='true'|'false']::
  105. Retrieve timestamp of the remote file from the remote HTTP/FTP
  106. server and if it is available, apply it to the local file.
  107. Default: 'false'
  108. *--retry-wait*=SEC::
  109. Set the seconds to wait to retry after an error has occured.
  110. Specify a value between '0' and '60'.
  111. Default: '5'
  112. *--server-stat-of*=FILE::
  113. Specify the filename to which performance profile of the servers is
  114. saved. You can load saved data using *--server-stat-if* option. See
  115. *Server Performance Profile* subsection below for file format.
  116. *--server-stat-if*=FILE::
  117. Specify the filename to load performance profile of the servers. The
  118. loaded data will be used in some URI selector such as 'feedback'.
  119. See also *--uri-selector* option. See *Server Performance Profile*
  120. subsection below for file format.
  121. *--server-stat-timeout*=SEC::
  122. Specifies timeout in seconds to invalidate performance profile of
  123. the servers since the last contact to them.
  124. Default: '86400' (24hours)
  125. *-s*, *--split*=N::
  126. Download a file using N connections.
  127. If more than N URLs are given, first N URLs are used and remaining URLs are
  128. used for backup.
  129. If less than N URLs are given, those URLs are used more than once so that N
  130. connections total are made simultaneously.
  131. Please see *-j* option too.
  132. Please note that in Metalink download, this option has no effect and use
  133. *-C* option instead.
  134. Default: '5'
  135. *-t*, *--timeout*=SEC::
  136. Set timeout in seconds.
  137. Default: '60'
  138. *--uri-selector*=SELECTOR::
  139. Specify URI selection algorithm. The possible values are 'inorder',
  140. 'feedback' and 'adaptive'. If 'inorder' is given, URI is tried in
  141. the order appeared in the URI list. If 'feedback' is given, aria2
  142. uses download speed observed in the previous downloads and choose
  143. fastest server in the URI list. This also effectively skips dead
  144. mirrors. The observed download speed is a part of performance
  145. profile of servers mentioned in *--server-stat-of* and
  146. *--server-stat-if* options. If 'adaptive' is given, selects one of
  147. the best mirrors for the first and reserved connections. For
  148. supplementary ones, it returns mirrors which has not been tested
  149. yet, and if each of them has already been tested, returns mirrors
  150. which has to be tested again. Otherwise, it doesn't select anymore
  151. mirrors. Like 'feedback', it uses a performance profile of servers.
  152. Default: 'inorder'
  153. HTTP Specific Options
  154. ~~~~~~~~~~~~~~~~~~~~~
  155. *--ca-certificate*=FILE::
  156. Use the certificate authorities in FILE to verify the peers.
  157. The certificate file must be in PEM format and can contain multiple CA
  158. certificates.
  159. Use *--check-certificate* option to enable verification.
  160. *--certificate*=FILE::
  161. Use the client certificate in FILE.
  162. The certificate must be in PEM format.
  163. You may use *--private-key* option to specify the private key.
  164. *--check-certificate*[='true'|'false']::
  165. Verify the peer using certificates specified in *--ca-certificate* option.
  166. Default: 'true'
  167. *--http-auth-scheme*=SCHEME::
  168. Set HTTP authentication scheme.
  169. Currently, 'basic' is the only supported scheme.
  170. Default: 'basic'
  171. *--http-user*=USER::
  172. Set HTTP user. This affects all URLs.
  173. *--http-passwd*=PASSWD::
  174. Set HTTP password. This affects all URLs.
  175. *--http-proxy*=PROXY::
  176. Use this proxy server for HTTP. See also *--all-proxy* option.
  177. This affects all URLs.
  178. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  179. *--https-proxy*=PROXY::
  180. Use this proxy server for HTTPS. See also *--all-proxy* option.
  181. This affects all URLs.
  182. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  183. *--private-key*=FILE::
  184. Use the private key in FILE.
  185. The private key must be decrypted and in PEM format.
  186. The behavior when encrypted one is given is undefined.
  187. See also *--certificate* option.
  188. *--referer*=REFERER::
  189. Set Referer. This affects all URLs.
  190. *--enable-http-keep-alive*[='true'|'false']::
  191. Enable HTTP/1.1 persistent connection.
  192. Default: 'true'
  193. *--enable-http-pipelining*[='true'|'false']::
  194. Enable HTTP/1.1 pipelining.
  195. Default: 'false'
  196. *--header*=HEADER::
  197. Append HEADER to HTTP request header.
  198. You can use this option repeatedly to specify more than one header:
  199. aria2c *--header*="X-A: b78" *--header*="X-B: 9J1" "http://host/file"
  200. *--load-cookies*=FILE::
  201. Load Cookies from FILE using the Firefox3 format (SQLite3) and the
  202. Mozilla/Firefox(1.x/2.x)/Netscape format.
  203. [NOTE]
  204. If aria2 is built without libsqlite3, then it doesn't support Firefox3 cookie format.
  205. *--use-head*[='true'|'false']::
  206. Use HEAD method for the first request to the HTTP server.
  207. Default: 'true'
  208. *-U*, *--user-agent*=USER_AGENT::
  209. Set user agent for HTTP(S) downloads.
  210. FTP Specific Options
  211. ~~~~~~~~~~~~~~~~~~~~
  212. *--ftp-user*=USER::
  213. Set FTP user. This affects all URLs.
  214. Default: 'anonymous'
  215. *--ftp-passwd*=PASSWD::
  216. Set FTP password. This affects all URLs.
  217. Default: 'ARIA2USER@'
  218. *-p*, *--ftp-pasv*[='true'|'false']::
  219. Use the passive mode in FTP.
  220. If 'false' is given, the active mode will be used.
  221. Default: 'true'
  222. *--ftp-proxy*=PROXY::
  223. Use this proxy server for FTP. See also *--all-proxy* option.
  224. This affects all URLs.
  225. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  226. *--ftp-type*=TYPE::
  227. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  228. Default: 'binary'
  229. *--ftp-reuse-connection*[='true'|'false']::
  230. Reuse connection in FTP.
  231. Default: 'true'
  232. *-n*, *--no-netrc*::
  233. Disables netrc support. netrc support is enabled by default.
  234. BitTorrent/Metalink Options
  235. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  236. *--select-file*=INDEX...::
  237. Set file to download by specifying its index.
  238. You can find the file index using the *--show-files* option.
  239. Multiple indexes can be specified by using ",", for example: '3,6'.
  240. You can also use "-" to specify a range: '1-5'.
  241. "," and "-" can be used together: '1-5,8,9'.
  242. When used with the -M option, index may vary depending on the query
  243. (see *--metalink-** options).
  244. [NOTE]
  245. In multi file torrent, the adjacent files specified by this option may
  246. also be downloaded. This is by design, not a bug.
  247. A single piece may include several files or part of files, and aria2
  248. writes the piece to the appropriate files.
  249. *-S*, *--show-files*::
  250. Print file listing of .torrent or .metalink file and exit.
  251. In case of .torrent file, additional information
  252. (infohash, piece length, etc) is also printed.
  253. BitTorrent Specific Options
  254. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  255. *--bt-external-ip*=IPADDRESS::
  256. Specify the external IP address to report to a BitTorrent
  257. tracker. Although this function is named "external", it can accept
  258. any kind of IP addresses. IPADDRESS must be a numeric IP address.
  259. *--bt-hash-check-seed*[='true'|'false']::
  260. If 'true' is given, after hash check using *--check-integrity* option and
  261. file is complete, continue to seed file. If you want to check file
  262. and download it only when it is damaged or incomplete, set this
  263. option to 'false'. This option has effect only on BitTorrent download.
  264. Default: 'true'
  265. *--bt-max-open-files*=NUM::
  266. Specify maximum number of files to open in each BitTorrent download.
  267. Default: '100'
  268. *--bt-max-peers*=NUM::
  269. Specify the maximum number of peers per torrent. '0' means
  270. unlimited. See also *--bt-request-peer-speed-limit* option.
  271. Default: '55'
  272. *--bt-min-crypto-level*='plain'|'arc4'::
  273. Set minimum level of encryption method.
  274. If several encryption methods are provided by a peer, aria2 chooses the lowest
  275. one which satisfies the given level.
  276. Default: 'plain'
  277. *--bt-require-crypto*='true'|'false'::
  278. If true is given, aria2 doesn't accept and establish connection with legacy
  279. BitTorrent handshake(\19BitTorrent protocol).
  280. Thus aria2 always uses Obfuscation handshake.
  281. Default: 'false'
  282. *--bt-request-peer-speed-limit*=SPEED::
  283. If the whole download speed of every torrent is lower than SPEED,
  284. aria2 temporarily increases the number of peers to try for more
  285. download speed. Configuring this option with your preferred download
  286. speed can increase your download speed in some cases.
  287. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  288. Default: '50K'
  289. *--bt-seed-unverified*[='true'|'false']::
  290. Seed previously downloaded files without verifying piece hashes.
  291. Default: 'false'
  292. *--dht-entry-point*=HOST:PORT::
  293. Set host and port as an entry point to DHT network.
  294. *--dht-file-path*=PATH::
  295. Change the DHT routing table file to PATH.
  296. Default: '$HOME/.aria2/dht.dat'
  297. *--dht-listen-port*=PORT...::
  298. Set UDP listening port for DHT.
  299. Multiple ports can be specified by using ",", for example: '6881,6885'.
  300. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  301. together.
  302. Default: '6881-6999'
  303. [NOTE]
  304. Make sure that the specified ports are open for incoming UDP traffic.
  305. *--direct-file-mapping*='true'|'false'::
  306. Directly read from and write to each file mentioned in .torrent file.
  307. Use this option if lots of files are listed in .torrent file and aria2
  308. complains it cannot open files anymore.
  309. Default: 'true'
  310. *--enable-dht*[='true'|'false']::
  311. Enable DHT functionality. If a private flag is set in a torrent, aria2
  312. doesn't use DHT for that download even if 'true' is given.
  313. Default: 'false'
  314. *--enable-peer-exchange*[='true'|'false']::
  315. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  316. feature is disabled for that download even if 'true' is given.
  317. Default: 'true'
  318. *--follow-torrent*='true'|'false'|'mem'::
  319. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  320. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  321. file and downloads files mentioned in it.
  322. If 'mem' is specified, a torrent file is not written to the disk, but is just
  323. kept in memory.
  324. If 'false' is specified, the action mentioned above is not taken.
  325. Default: 'true'
  326. *--listen-port*=PORT...::
  327. Set TCP port number for BitTorrent downloads.
  328. Multiple ports can be specified by using ",", for example: '6881,6885'.
  329. You can also use "-" to specify a range: '6881-6999'.
  330. "," and "-" can be used together: '6881-6889,6999'.
  331. Default: '6881-6999'
  332. [NOTE]
  333. Make sure that the specified ports are open for incoming TCP traffic.
  334. *--max-overall-upload-limit*=SPEED::
  335. Set max overall upload speed in bytes/sec.
  336. '0' means unrestricted.
  337. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  338. To limit the upload speed per torrent, use *--max-upload-limit* option.
  339. If non-zero value is specified, *--max-upload-limit* option is ignored.
  340. Default: '0'
  341. *-u*, *--max-upload-limit*=SPEED::
  342. Set max upload speed per each torrent in bytes/sec.
  343. '0' means unrestricted.
  344. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  345. To limit the overall upload speed, use *--max-overall-upload-limit* option.
  346. Default: '0'
  347. *--peer-id-prefix*=PEERI_ID_PREFIX::
  348. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  349. If more than 20 bytes are specified, only first 20 bytes are used.
  350. If less than 20 bytes are specified, the random alphabet characters are
  351. added to make it's length 20 bytes.
  352. Default: '-aria2-'
  353. *--seed-ratio*=RATIO::
  354. Specify share ratio. Seed completed torrents until share ratio reaches
  355. RATIO.
  356. You are strongly encouraged to specify equals or more than '1.0' here.
  357. Specify '0.0' if you intend to do seeding regardless of share ratio.
  358. If *--seed-time* option is specified along with this option, seeding ends when
  359. at least one of the conditions is satisfied.
  360. Default: '1.0'
  361. *--seed-time*=MINUTES::
  362. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  363. *-T*, *--torrent-file*=TORRENT_FILE::
  364. The path to the .torrent file.
  365. You are not required to use this option because you can specify a torrent file without -T.
  366. Metalink Specific Options
  367. ~~~~~~~~~~~~~~~~~~~~~~~~~
  368. *--follow-metalink*='true'|'false'|'mem'::
  369. If 'true' or 'mem' is specified, when a file whose suffix is ".metaink" or content
  370. type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  371. file and downloads files mentioned in it.
  372. If 'mem' is specified, a metalink file is not written to the disk, but is just
  373. kept in memory.
  374. If 'false' is specified, the action mentioned above is not taken.
  375. Default: 'true'
  376. *-M*, *--metalink-file*=METALINK_FILE::
  377. The file path to .metalink file. You are not required to use this option because you can
  378. specify a metalink file without -M.
  379. *-C*, *--metalink-servers*=NUM_SERVERS::
  380. The number of servers to connect to simultaneously.
  381. Some Metalinks regulate the number of servers to connect.
  382. aria2 strictly respects them.
  383. This means that if Metalink defines the maxconnections attribute lower
  384. than NUM_SERVERS, then aria2 uses the value of maxconnections attribute
  385. instead of NUM_SERVERS.
  386. See also *-s* and *-j* options.
  387. Default: '5'
  388. *--metalink-language*=LANGUAGE::
  389. The language of the file to download.
  390. *--metalink-location*=LOCATION[,...]::
  391. The location of the preferred server.
  392. A comma-delimited list of locations is acceptable, for example, 'JP,US'.
  393. *--metalink-os*=OS::
  394. The operating system of the file to download.
  395. *--metalink-version*=VERSION::
  396. The version of the file to download.
  397. *--metalink-preferred-protocol*=PROTO::
  398. Specify preferred protocol.
  399. The possible values are 'http', 'https', 'ftp' and 'none'.
  400. Specify 'none' to disable this feature.
  401. Default: 'none'
  402. *--metalink-enable-unique-protocol*='true'|'false'::
  403. If 'true' is given and several protocols are available for a mirror in a
  404. metalink file, aria2 uses one of them.
  405. Use *--metalink-preferred-protocol* option to specify the preference of
  406. protocol.
  407. Default: 'true'
  408. Advanced Options
  409. ~~~~~~~~~~~~~~~~
  410. *--allow-overwrite*='true'|'false'::
  411. If 'false' is given, aria2 doesn't download a file which already exists but
  412. the corresponding .aria2 file doesn't exist.
  413. In HTTP(S)/FTP download, if *--auto-file-renaming*='true' then,
  414. file name will be renamed. See *--auto-file-renaming* for details.
  415. Default: 'false'
  416. *--allow-piece-length-change*='true'|'false'::
  417. If false is given, aria2 aborts download when a piece length is different
  418. from one in a control file.
  419. If true is given, you can proceed but some download progress will be lost.
  420. Default: 'false'
  421. *--async-dns*[='true'|'false']::
  422. Enable asynchronous DNS.
  423. Default: 'true'
  424. *--auto-file-renaming*[='true'|'false']::
  425. Rename file name if the same file already exists.
  426. This option works only in HTTP(S)/FTP download.
  427. The new file name has a dot and a number(1..9999) appended.
  428. Default: 'true'
  429. *--auto-save-interval*=SEC::
  430. Save a control file(*.aria2) every SEC seconds.
  431. If '0' is given, a control file is not saved during download. aria2 saves a
  432. control file when it stops regardless of the value.
  433. The possible values are between '0' to '600'.
  434. Default: '60'
  435. *--conf-path*=PATH::
  436. Change the configuration file path to PATH.
  437. Default: '$HOME/.aria2/aria2.conf'
  438. *-D*, *--daemon*::
  439. Run as daemon.
  440. *--enable-direct-io*[='true'|'false']::
  441. Enable directI/O, which lowers cpu usage while allocating/checking files.
  442. Turn off if you encounter any error.
  443. Default: 'true'
  444. *--enable-http-server*[='true'|'false']::
  445. Enable the built-in HTTP server. Currently, this is the experimental
  446. feature and it just provides the current download progress. Use your
  447. web browser(console-based ones, such as elinks, w3m, are
  448. recommended) to connect the server and see what's what. See also
  449. *--http-server-listen-port* option. Default: 'false'
  450. *--event-poll*=POLL::
  451. Specify the method for polling events. The possible Values are
  452. 'epoll' and 'select'. If you use recent Linux that has epoll, then
  453. the default value is 'epoll'. Otherwise, the default value is
  454. 'select'.
  455. *--file-allocation*=METHOD::
  456. Specify file allocation method. METHOD is either 'none' or 'prealloc'.
  457. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  458. before download begins. This may take some time depending on the size of the
  459. file.
  460. Default: 'prealloc'
  461. *--log-level*=LEVEL::
  462. Set log level to output.
  463. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  464. Default: 'debug'
  465. *--summary-interval*=SEC::
  466. Set interval in seconds to output download progress summary.
  467. Setting '0' suppresses the output.
  468. Default: '60'
  469. [NOTE]
  470. In multi file torrent downloads, the files adjacent forward to the specified files
  471. are also allocated if they share the same piece.
  472. *-Z*, *--force-sequential*[='true'|'false']::
  473. Fetch URIs in the command-line sequentially and download each URI in a
  474. separate session, like the usual command-line download utilities.
  475. Default: 'false'
  476. *--http-server-listen-port*=PORT::
  477. Specify a port number for the built-in HTTP Server to listen to.
  478. See also *--enable-http-server* option. The possible Values are
  479. '1024'-'65535'. Default: '6800'
  480. *--max-download-limit*=SPEED::
  481. Set max download speed in bytes per sec. '0' means unrestricted.
  482. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  483. Default: '0'
  484. *--no-conf*::
  485. Disable loading aria2.conf file.
  486. *--no-file-allocation-limit*=SIZE::
  487. No file allocation is made for files whose size is smaller than SIZE.
  488. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  489. Default: '5M'
  490. *-P*, *--parameterized-uri*[='true'|'false']::
  491. Enable parameterized URI support.
  492. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  493. Also you can specify numeric sequences with step counter:
  494. '\\http://host/image[000-100:2].img'.
  495. A step counter can be omitted.
  496. If all URIs do not point to the same file, such as the second example above,
  497. -Z option is required.
  498. Default: 'false'
  499. *-q*, *--quiet*[='true'|'false']::
  500. Make aria2 quiet (no console output).
  501. Default: 'false'
  502. *--realtime-chunk-checksum*='true'|'false'::
  503. Validate chunk of data by calculating checksum while downloading a file if
  504. chunk checksums are provided.
  505. Default: 'true'
  506. *--stop*=SEC::
  507. Stop application after SEC seconds has passed.
  508. If '0' is given, this feature is disabled.
  509. Default: '0'
  510. *-v*, *--version*::
  511. Print the version number, copyright and the configuration information and
  512. exit.
  513. Options That Take An Optional Argument
  514. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  515. The options that have its argument surrounded by square brackets([])
  516. take an optional argument. Usually omiting the argument is evaluated to 'true'.
  517. If you use short form of these options(such as '-V') and give
  518. an argument, then the option name and its argument should be concatenated(e.g.
  519. '-Vfalse'). If any spaces are inserted between the option name and the argument,
  520. the argument will be treated as URI and usually this is not what you expect.
  521. URL, TORRENT_FILE, METALINK_FILE
  522. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  523. You can specify multiple URLs in command-line.
  524. Unless you specify *-Z* option, all URLs must point to the same file or downloading will fail.
  525. You can also specify arbitrary number of torrent files and metalink files
  526. stored on a local drive. Please note that they are always treated as a
  527. separate download.
  528. You can specify both torrent file with -T option and URLs. By doing this,
  529. you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  530. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  531. only single file torrent can be integrated with HTTP(S)/FTP.
  532. [NOTE]
  533. Make sure that URL is quoted with single(\') or double(") quotation if it
  534. contains "&" or any characters that have special meaning in shell.
  535. Resuming Download
  536. ~~~~~~~~~~~~~~~~~
  537. Usually, you can resume transfer by just issuing same command(aria2c
  538. URL) if the previous transfer is made by aria2.
  539. If the previous transfer is made by a browser or wget like sequential
  540. download manager, then use -c option to continue the transfer(aria2c
  541. *-c* URL).
  542. EXIT STATUS
  543. -----------
  544. Because aria2 can handle multiple downloads at once, it encounters
  545. lots of errors in a session. aria2 returns the following exit status
  546. based on the last error encountered.
  547. *0*::
  548. If all downloads are successful.
  549. *1*::
  550. If an unknown error occurs.
  551. *2*::
  552. If time out occurs.
  553. *3*::
  554. If a resource is not found.
  555. *4*::
  556. If aria2 sees the specfied number of "resource not found" error.
  557. See *--max-file-not-found* option).
  558. *5*::
  559. If a download aborts because download speed is too slow.
  560. See *--lowest-speed-limit* option)
  561. *6*::
  562. If network problem occurs.
  563. *7*::
  564. If there are unfinished downloads. This error is only reported if
  565. all finished downloads are successful and there are unfinished
  566. downloads in a queue when aria2 exits by pressing Ctrl-C by an user
  567. or sending TERM or INT signal.
  568. [NOTE]
  569. An error occurred in a finished download will not be reported
  570. as exit status.
  571. ENVIRONMENT
  572. -----------
  573. aria2 recognizes the following environment variables.
  574. http_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  575. Specify proxy server for use in HTTP.
  576. Overrides http-proxy value in configuration file.
  577. The command-line option *--http-proxy* overrides this value.
  578. https_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  579. Specify proxy server for use in HTTPS.
  580. Overrides https-proxy value in configuration file.
  581. The command-line option *--https-proxy* overrides this value.
  582. ftp_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  583. Specify proxy server for use in FTP.
  584. Overrides ftp-proxy value in configuration file.
  585. The command-line option *--ftp-proxy* overrides this value.
  586. all_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  587. Specify proxy server for use if no protocol-specific proxy is specified.
  588. Overrides all-proxy value in configuration file.
  589. The command-line option *--all-proxy* overrides this value.
  590. no_proxy [DOMAIN,...]::
  591. Specify comma-separated hostname or domains to which proxy should not be used.
  592. Overrides no-proxy value in configuration file.
  593. The command-line option *--no-proxy* overrides this value.
  594. FILES
  595. -----
  596. aria2.conf
  597. ~~~~~~~~~~
  598. By default, aria2 parses '$HOME/.aria2/aria2.conf' as a configuraiton
  599. file. You can specify the path to configuration file using
  600. *--conf-path* option. If you don't want to use the configuraitonf
  601. file, use *--no-conf* option.
  602. The configuration file is a text file and has 1 option per each
  603. line. In each line, you can specify name-value pair in the format:
  604. NAME=VALUE, where name is the long command-line option name without
  605. "--" prefix. You can use same syntax for the command-line option. The
  606. lines beginning "#" are treated as comments.
  607. --------------------------------------
  608. # sample configuration file for aria2c
  609. listen-port=60000
  610. dht-listen-port=60000
  611. seed-ratio=1.0
  612. max-upload-limit=50K
  613. ftp-pasv=true
  614. --------------------------------------
  615. dht.dat
  616. ~~~~~~~~
  617. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  618. Control File
  619. ~~~~~~~~~~~~
  620. aria2 uses a control file to track the progress of a download. A
  621. control file is placed in the same directory as the downloading file
  622. and its filename is the filename of downloading file with ".aria2"
  623. appended. For example, if you are downloading file.zip, then the
  624. control file should be file.zip.aria2. (There is a exception for this
  625. naming convention. If you are downloading a multi torrent, its
  626. control file is the "top directory" name of the torrent with ".aria2"
  627. appended. The "top directory" name is a value of "name" key in "info"
  628. directory in a torrent file.)
  629. Usually a control file is deleted once download completed. If aria2
  630. decides that download cannot be resumed(for example, when downloading
  631. a file from a HTTP server which doesn't support resume), a control
  632. file is not created.
  633. Normally if you lose a control file, you cannot resume download. But
  634. if you have a torrent or metalink with chunk checksums for the file,
  635. you can resume the download without a control file by giving -V option
  636. to aria2c in command-line.
  637. Input File
  638. ~~~~~~~~~~
  639. The input file can contain a list of URIs for aria2 to download. You
  640. can specify multiple URIs for a single entity: separate URIs on a
  641. single line using the TAB character.
  642. Each line is treated as if it is provided in command-line argument.
  643. Therefore they are affected by *-Z* and *-P* options. The additional
  644. *out* and *dir* options can be specified after each line of URIs. This
  645. optional line must start with white space(s).
  646. For example, the content of uri.txt is
  647. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  648. http://server/file.iso http://mirror/file.iso
  649. dir=/iso_images
  650. out=file.img
  651. http://foo/bar
  652. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  653. If aria2 is executed with *-i* uri.txt *-d* /tmp options, then
  654. 'file.iso' is saved as '/iso_images/file.img' and it is downloaded
  655. from \http://server/file.iso and \http://mirror/file.iso. The file
  656. 'bar' is downloaded from \http://foo/bar and saved as '/tmp/bar'.
  657. In some cases, *out* parameter has no effect. See note of *--out*
  658. option for the restrictions.
  659. Server Performance Profile
  660. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  661. This section describes the format of server performance profile. The
  662. file is plain text and each line has several NAME=VALUE pair,
  663. delimited by comma. Currently following NAMEs are recognized:
  664. host::
  665. Hostname of the server. Required.
  666. protocol::
  667. Protocol for this profile, such as ftp, http. Required.
  668. dl_speed::
  669. The average download speed observed in the previous download in
  670. bytes per sec. Required.
  671. sc_avg_speed::
  672. The average download speed observed in the previous download in
  673. bytes per sec. This value is only updated if the download is done in
  674. single connection environment and only used by
  675. AdaptiveURISelector. Optional.
  676. mc_avg_speed::
  677. The average download speed observed in the previous download in
  678. bytes per sec. This value is only updated if the download is done in
  679. multi connection environment and only used by
  680. AdaptiveURISelector. Optional.
  681. counter::
  682. How many times the server is used. Currently this value is only used
  683. by AdaptiveURISelector. Optional.
  684. last_updated::
  685. Last contact time in GMT with this server, specified in the seconds
  686. from the Epoch. Required.
  687. status::
  688. ERROR is set when server cannot be reached or out-of-service or
  689. timeout occurred. Otherwise, OK is set.
  690. Those fields must exist in one line. The order of the fields is not
  691. significant. You can put pairs other than the above; they are simply
  692. ignored.
  693. An example follows:
  694. --------------------------------------------------------------------------------
  695. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  696. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  697. --------------------------------------------------------------------------------
  698. EXAMPLE
  699. -------
  700. HTTP/FTP Segmented Download
  701. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  702. Download a file
  703. ^^^^^^^^^^^^^^^
  704. --------------------------------
  705. aria2c "http://host/file.zip"
  706. --------------------------------
  707. [NOTE]
  708. aria2 uses 5 connections to download 1 file by default.
  709. Download a file using 1 connection
  710. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  711. ----------------------------------
  712. aria2c -s1 "http://host/file.zip"
  713. ----------------------------------
  714. [NOTE]
  715. aria2 uses 5 connections to download 1 file by default.
  716. -s1 limits the number of connections to just 1.
  717. [NOTE]
  718. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory. You can change URLs as long as they are pointing to the same file.
  719. Download a file from 2 different HTTP servers
  720. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  721. ------------------------------------------------------
  722. aria2c "http://host/file.zip" "http://mirror/file.zip"
  723. ------------------------------------------------------
  724. Download a file from HTTP and FTP servers
  725. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  726. -----------------------------------------------------
  727. aria2c "http://host1/file.zip" "ftp://host2/file.zip"
  728. -----------------------------------------------------
  729. Download files listed in a text file concurrently
  730. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  731. ------------------------
  732. aria2c -ifiles.txt -j2
  733. ------------------------
  734. [NOTE]
  735. -j option specifies the number of parallel downloads.
  736. Using proxy
  737. ^^^^^^^^^^^
  738. For HTTP:
  739. ----------------------------------------------------------
  740. aria2c --http-proxy="http://proxy:8080" "http://host/file"
  741. ----------------------------------------------------------
  742. For FTP:
  743. --------------------------------------------------------
  744. aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"
  745. --------------------------------------------------------
  746. [NOTE]
  747. See *--http-proxy*, *--https-proxy*, *--ftp-proxy* and *--all-proxy* for
  748. details.
  749. You can specify proxy in the environment variables. See *ENVIRONMENT* section.
  750. Proxy with authorization
  751. ^^^^^^^^^^^^^^^^^^^^^^^^
  752. ----------------------------------------------------------------------------
  753. aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
  754. ----------------------------------------------------------------------------
  755. Metalink Download
  756. ~~~~~~~~~~~~~~~~~
  757. Download files with remote Metalink
  758. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  759. --------------------------------------------------------
  760. aria2c --follow-metalink=mem "http://host/file.metalink"
  761. --------------------------------------------------------
  762. Download using a local metalink file
  763. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  764. ----------------------------------------------------------
  765. aria2c -p --lowest-speed-limit=4000 file.metalink
  766. ----------------------------------------------------------
  767. [NOTE]
  768. To pause a download, press Ctrl-C.
  769. You can resume the transfer by running aria2c with the same argument in the same
  770. directory.
  771. Download several local metalink files
  772. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  773. ----------------------------------------
  774. aria2c -j2 file1.metalink file2.metalink
  775. ----------------------------------------
  776. Download only selected files using index
  777. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  778. -------------------------------------------
  779. aria2c --select-file=1-4,8 file.metalink
  780. -------------------------------------------
  781. [NOTE]
  782. The index is printed to the console using -S option.
  783. Download a file using a local .metalink file with user preference
  784. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  785. ------------------------------------------------------------------------------
  786. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  787. ------------------------------------------------------------------------------
  788. BitTorrent Download
  789. ~~~~~~~~~~~~~~~~~~~
  790. Download files from remote BitTorrent file
  791. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  792. ------------------------------------------------------
  793. aria2c --follow-torrent=mem "http://host/file.torrent"
  794. ------------------------------------------------------
  795. Download using a local torrent file
  796. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  797. ---------------------------------------------
  798. aria2c --max-upload-limit=40K file.torrent
  799. ---------------------------------------------
  800. [NOTE]
  801. --max-upload-limit specifies the max of upload rate.
  802. [NOTE]
  803. To pause a download, press Ctrl-C. You can resume the transfer by run aria2c with the same argument in the same directory.
  804. Download 2 torrents
  805. ^^^^^^^^^^^^^^^^^^^
  806. --------------------------------------
  807. aria2c -j2 file1.torrent file2.torrent
  808. --------------------------------------
  809. Download a file using torrent and HTTP/FTP server
  810. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  811. ------------------------------------------------------------
  812. aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"
  813. ------------------------------------------------------------
  814. [NOTE]
  815. Downloading multi file torrent with HTTP/FTP is not supported.
  816. Download only selected files using index(usually called "selectable download")
  817. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  818. ---------------------------------------
  819. aria2c --select-file=1-4,8 file.torrent
  820. ---------------------------------------
  821. [NOTE]
  822. The index is printed to the console using -S option.
  823. Change the listening port for incoming peer
  824. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  825. ---------------------------------------------------
  826. aria2c --listen-port=7000-7001,8000 file.torrent
  827. ---------------------------------------------------
  828. [NOTE]
  829. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  830. to you to do it manually.
  831. Specify the condition to stop program after torrent download finished
  832. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  833. -------------------------------------------------------
  834. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  835. -------------------------------------------------------
  836. [NOTE]
  837. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  838. Throttle upload speed
  839. ^^^^^^^^^^^^^^^^^^^^^
  840. ----------------------------------------------
  841. aria2c --max-upload-limit=100K file.torrent
  842. ----------------------------------------------
  843. Enable DHT
  844. ^^^^^^^^^^
  845. ---------------------------------------------------------
  846. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  847. ---------------------------------------------------------
  848. [NOTE]
  849. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  850. forwarding, it's up to you to do it manually.
  851. More advanced HTTP features
  852. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  853. Load cookies
  854. ^^^^^^^^^^^^
  855. --------------------------------------------------------
  856. aria2c --load-cookies=cookies.txt "http://host/file.zip"
  857. --------------------------------------------------------
  858. [NOTE]
  859. You can use Firefox/Mozilla's cookie file without modification.
  860. Resume download started by web browsers or another programs
  861. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  862. -------------------------------------------------------
  863. aria2c -c -s2 "http://host/partiallydownloadedfile.zip"
  864. -------------------------------------------------------
  865. Client certificate authorization for SSL/TLS
  866. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  867. ------------------------------------------------------------------------------------------
  868. aria2c --certificate=/path/to/mycert.pem --private-key=/path/to/mykey.pem https://host/file
  869. ------------------------------------------------------------------------------------------
  870. [NOTE]
  871. The file specified in *--private-key* must be decrypted. The behavior when
  872. encrypted one is given is undefined.
  873. Verify peer in SSL/TLS using given CA certificates
  874. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  875. ------------------------------------------------------------------------------------------
  876. aria2c --ca-certificate=/path/to/ca-certificates.crt --check-certificate https://host/file
  877. ------------------------------------------------------------------------------------------
  878. And more advanced features
  879. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  880. Throttle download speed
  881. ^^^^^^^^^^^^^^^^^^^^^^^
  882. -------------------------------------------------
  883. aria2c --max-download-limit=100K file.metalink
  884. -------------------------------------------------
  885. Repair a damaged download using -V option
  886. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  887. -----------------------
  888. aria2c -V file.metalink
  889. -----------------------
  890. [NOTE]
  891. This option is only available used with BitTorrent or metalink with chunk
  892. checksums.
  893. Drop connection if download speed is lower than specified value
  894. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  895. ------------------------------------------------
  896. aria2c --lowest-speed-limit=10K file.metalink
  897. ------------------------------------------------
  898. Parameterized URI support
  899. ^^^^^^^^^^^^^^^^^^^^^^^^^
  900. You can specify set of parts:
  901. -----------------------------------------------
  902. aria2c -P "http://{host1,host2,host3}/file.iso"
  903. -----------------------------------------------
  904. You can specify numeric sequence:
  905. ---------------------------------------------
  906. aria2c -Z -P "http://host/image[000-100].png"
  907. ---------------------------------------------
  908. [NOTE]
  909. -Z option is required if the all URIs don't point to the same file, such as the above example.
  910. You can specify step counter:
  911. -------------------------------------------
  912. aria2c -Z -P "http://host/image[A-Z:2].png"
  913. -------------------------------------------
  914. Parallel downloads of arbitrary number of URL,metalink,torrent
  915. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  916. --------------------------------------------------------------
  917. aria2c -j3 -Z "http://host/file1" file2.torrent file3.metalink
  918. --------------------------------------------------------------
  919. BitTorrent Encryption
  920. ^^^^^^^^^^^^^^^^^^^^^
  921. Encrypt whole payload using ARC4:
  922. -------------------------------------------------------------------------
  923. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  924. -------------------------------------------------------------------------
  925. SEE ALSO
  926. --------
  927. Project Web Site: http://aria2.sourceforge.net/
  928. aria2 Wiki: http://apps.sourceforge.net/trac/aria2/wiki
  929. Metalink Homepage: http://www.metalinker.org/
  930. COPYRIGHT
  931. ---------
  932. Copyright (C) 2006, 2009 Tatsuhiro Tsujikawa
  933. This program is free software; you can redistribute it and/or modify
  934. it under the terms of the GNU General Public License as published by
  935. the Free Software Foundation; either version 2 of the License, or
  936. (at your option) any later version.
  937. This program is distributed in the hope that it will be useful,
  938. but WITHOUT ANY WARRANTY; without even the implied warranty of
  939. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  940. GNU General Public License for more details.
  941. You should have received a copy of the GNU General Public License
  942. along with this program; if not, write to the Free Software
  943. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  944. In addition, as a special exception, the copyright holders give
  945. permission to link the code of portions of this program with the
  946. OpenSSL library under certain conditions as described in each
  947. individual source file, and distribute linked combinations
  948. including the two.
  949. You must obey the GNU General Public License in all respects
  950. for all of the code used other than OpenSSL. If you modify
  951. file(s) with this exception, you may extend this exception to your
  952. version of the file(s), but you are not obligated to do so. If you
  953. do not wish to do so, delete this exception statement from your
  954. version. If you delete this exception statement from all source
  955. files in the program, then also delete it here.