README.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="generator" content="AsciiDoc 8.2.7" />
  7. <style type="text/css">
  8. /* Debug borders */
  9. p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
  10. /*
  11. border: 1px solid red;
  12. */
  13. }
  14. body {
  15. margin: 1em 5% 1em 5%;
  16. }
  17. a {
  18. color: blue;
  19. text-decoration: underline;
  20. }
  21. a:visited {
  22. color: fuchsia;
  23. }
  24. em {
  25. font-style: italic;
  26. color: navy;
  27. }
  28. strong {
  29. font-weight: bold;
  30. color: #083194;
  31. }
  32. tt {
  33. color: navy;
  34. }
  35. h1, h2, h3, h4, h5, h6 {
  36. color: #527bbd;
  37. font-family: sans-serif;
  38. margin-top: 1.2em;
  39. margin-bottom: 0.5em;
  40. line-height: 1.3;
  41. }
  42. h1, h2, h3 {
  43. border-bottom: 2px solid silver;
  44. }
  45. h2 {
  46. padding-top: 0.5em;
  47. }
  48. h3 {
  49. float: left;
  50. }
  51. h3 + * {
  52. clear: left;
  53. }
  54. div.sectionbody {
  55. font-family: serif;
  56. margin-left: 0;
  57. }
  58. hr {
  59. border: 1px solid silver;
  60. }
  61. p {
  62. margin-top: 0.5em;
  63. margin-bottom: 0.5em;
  64. }
  65. ul, ol, li > p {
  66. margin-top: 0;
  67. }
  68. pre {
  69. padding: 0;
  70. margin: 0;
  71. }
  72. span#author {
  73. color: #527bbd;
  74. font-family: sans-serif;
  75. font-weight: bold;
  76. font-size: 1.1em;
  77. }
  78. span#email {
  79. }
  80. span#revision {
  81. font-family: sans-serif;
  82. }
  83. div#footer {
  84. font-family: sans-serif;
  85. font-size: small;
  86. border-top: 2px solid silver;
  87. padding-top: 0.5em;
  88. margin-top: 4.0em;
  89. }
  90. div#footer-text {
  91. float: left;
  92. padding-bottom: 0.5em;
  93. }
  94. div#footer-badges {
  95. float: right;
  96. padding-bottom: 0.5em;
  97. }
  98. div#preamble,
  99. div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
  100. div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
  101. div.admonitionblock {
  102. margin-right: 10%;
  103. margin-top: 1.5em;
  104. margin-bottom: 1.5em;
  105. }
  106. div.admonitionblock {
  107. margin-top: 2.5em;
  108. margin-bottom: 2.5em;
  109. }
  110. div.content { /* Block element content. */
  111. padding: 0;
  112. }
  113. /* Block element titles. */
  114. div.title, caption.title {
  115. color: #527bbd;
  116. font-family: sans-serif;
  117. font-weight: bold;
  118. text-align: left;
  119. margin-top: 1.0em;
  120. margin-bottom: 0.5em;
  121. }
  122. div.title + * {
  123. margin-top: 0;
  124. }
  125. td div.title:first-child {
  126. margin-top: 0.0em;
  127. }
  128. div.content div.title:first-child {
  129. margin-top: 0.0em;
  130. }
  131. div.content + div.title {
  132. margin-top: 0.0em;
  133. }
  134. div.sidebarblock > div.content {
  135. background: #ffffee;
  136. border: 1px solid silver;
  137. padding: 0.5em;
  138. }
  139. div.listingblock {
  140. margin-right: 0%;
  141. }
  142. div.listingblock > div.content {
  143. border: 1px solid silver;
  144. background: #f4f4f4;
  145. padding: 0.5em;
  146. }
  147. div.quoteblock {
  148. padding-left: 2.0em;
  149. }
  150. div.quoteblock > div.attribution {
  151. padding-top: 0.5em;
  152. text-align: right;
  153. }
  154. div.verseblock {
  155. padding-left: 2.0em;
  156. }
  157. div.verseblock > div.content {
  158. white-space: pre;
  159. }
  160. div.verseblock > div.attribution {
  161. padding-top: 0.75em;
  162. text-align: left;
  163. }
  164. /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
  165. div.verseblock + div.attribution {
  166. text-align: left;
  167. }
  168. div.admonitionblock .icon {
  169. vertical-align: top;
  170. font-size: 1.1em;
  171. font-weight: bold;
  172. text-decoration: underline;
  173. color: #527bbd;
  174. padding-right: 0.5em;
  175. }
  176. div.admonitionblock td.content {
  177. padding-left: 0.5em;
  178. border-left: 2px solid silver;
  179. }
  180. div.exampleblock > div.content {
  181. border-left: 2px solid silver;
  182. padding: 0.5em;
  183. }
  184. div.imageblock div.content { padding-left: 0; }
  185. div.imageblock img { border: 1px solid silver; }
  186. span.image img { border-style: none; }
  187. dl {
  188. margin-top: 0.8em;
  189. margin-bottom: 0.8em;
  190. }
  191. dt {
  192. margin-top: 0.5em;
  193. margin-bottom: 0;
  194. font-style: normal;
  195. }
  196. dd > *:first-child {
  197. margin-top: 0.1em;
  198. }
  199. ul, ol {
  200. list-style-position: outside;
  201. }
  202. div.olist > ol {
  203. list-style-type: decimal;
  204. }
  205. div.olist2 > ol {
  206. list-style-type: lower-alpha;
  207. }
  208. div.tableblock > table {
  209. border: 3px solid #527bbd;
  210. }
  211. thead {
  212. font-family: sans-serif;
  213. font-weight: bold;
  214. }
  215. tfoot {
  216. font-weight: bold;
  217. }
  218. div.hlist {
  219. margin-top: 0.8em;
  220. margin-bottom: 0.8em;
  221. }
  222. div.hlist td {
  223. padding-bottom: 15px;
  224. }
  225. td.hlist1 {
  226. vertical-align: top;
  227. font-style: normal;
  228. padding-right: 0.8em;
  229. }
  230. td.hlist2 {
  231. vertical-align: top;
  232. }
  233. @media print {
  234. div#footer-badges { display: none; }
  235. }
  236. div#toctitle {
  237. color: #527bbd;
  238. font-family: sans-serif;
  239. font-size: 1.1em;
  240. font-weight: bold;
  241. margin-top: 1.0em;
  242. margin-bottom: 0.1em;
  243. }
  244. div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  245. margin-top: 0;
  246. margin-bottom: 0;
  247. }
  248. div.toclevel2 {
  249. margin-left: 2em;
  250. font-size: 0.9em;
  251. }
  252. div.toclevel3 {
  253. margin-left: 4em;
  254. font-size: 0.9em;
  255. }
  256. div.toclevel4 {
  257. margin-left: 6em;
  258. font-size: 0.9em;
  259. }
  260. /* Workarounds for IE6's broken and incomplete CSS2. */
  261. div.sidebar-content {
  262. background: #ffffee;
  263. border: 1px solid silver;
  264. padding: 0.5em;
  265. }
  266. div.sidebar-title, div.image-title {
  267. color: #527bbd;
  268. font-family: sans-serif;
  269. font-weight: bold;
  270. margin-top: 0.0em;
  271. margin-bottom: 0.5em;
  272. }
  273. div.listingblock div.content {
  274. border: 1px solid silver;
  275. background: #f4f4f4;
  276. padding: 0.5em;
  277. }
  278. div.quoteblock-attribution {
  279. padding-top: 0.5em;
  280. text-align: right;
  281. }
  282. div.verseblock-content {
  283. white-space: pre;
  284. }
  285. div.verseblock-attribution {
  286. padding-top: 0.75em;
  287. text-align: left;
  288. }
  289. div.exampleblock-content {
  290. border-left: 2px solid silver;
  291. padding-left: 0.5em;
  292. }
  293. /* IE6 sets dynamically generated links as visited. */
  294. div#toc a:visited { color: blue; }
  295. /* Because IE6 child selector is broken. */
  296. div.olist2 ol {
  297. list-style-type: lower-alpha;
  298. }
  299. div.olist2 div.olist ol {
  300. list-style-type: decimal;
  301. }
  302. </style>
  303. <title>aria2 - The ultra fast download utility</title>
  304. </head>
  305. <body>
  306. <div id="header">
  307. <h1>aria2 - The ultra fast download utility</h1>
  308. <span id="author">Tatsuhiro Tsujikawa</span><br />
  309. <span id="email"><tt>&lt;<a href="mailto:tujikawa_at_users_dot_sourceforge_dot_net">tujikawa_at_users_dot_sourceforge_dot_net</a>&gt;</tt></span><br />
  310. </div>
  311. <h2 id="_disclaimer">1. Disclaimer</h2>
  312. <div class="sectionbody">
  313. <div class="para"><p>This program comes with no warranty.
  314. You must use this program at your own risk.</p></div>
  315. </div>
  316. <h2 id="_introduction">2. Introduction</h2>
  317. <div class="sectionbody">
  318. <div class="para"><p>aria2 is a utility for downloading files. The supported protocols are
  319. HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from
  320. multiple sources/protocols and tries to utilize your maximum download
  321. bandwidth. It supports downloading a file from HTTP(S)/FTP and
  322. BitTorrent at the same time, while the data downloaded from
  323. HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's
  324. chunk checksums, aria2 automatically validates chunks of data while
  325. downloading a file like BitTorrent.</p></div>
  326. <div class="para"><p>Here is a list of features.</p></div>
  327. <div class="ilist"><ul>
  328. <li>
  329. <p>
  330. Command-line interface
  331. </p>
  332. </li>
  333. <li>
  334. <p>
  335. Download files through HTTP(S)/FTP/BitTorrent
  336. </p>
  337. </li>
  338. <li>
  339. <p>
  340. Segmented downloading
  341. </p>
  342. </li>
  343. <li>
  344. <p>
  345. Metalink version 3.0 support(HTTP/FTP/BitTorrent)
  346. </p>
  347. </li>
  348. <li>
  349. <p>
  350. HTTP/1.1 implementation
  351. </p>
  352. </li>
  353. <li>
  354. <p>
  355. HTTP Proxy support
  356. </p>
  357. </li>
  358. <li>
  359. <p>
  360. HTTP BASIC authentication support
  361. </p>
  362. </li>
  363. <li>
  364. <p>
  365. HTTP Proxy authentication support
  366. </p>
  367. </li>
  368. <li>
  369. <p>
  370. Well-known environment variables for proxy: http_proxy, https_proxy,
  371. ftp_proxy, all_proxy and no_proxy
  372. </p>
  373. </li>
  374. <li>
  375. <p>
  376. HTTP gzip, deflate content encoding support
  377. </p>
  378. </li>
  379. <li>
  380. <p>
  381. Verify peer using given trusted CA certificate in HTTPS
  382. </p>
  383. </li>
  384. <li>
  385. <p>
  386. Client certificate authentication in HTTPS
  387. </p>
  388. </li>
  389. <li>
  390. <p>
  391. Chunked transfer encoding support
  392. </p>
  393. </li>
  394. <li>
  395. <p>
  396. Load Cookies from file using the Firefox3 format and the Mozilla/Firefox
  397. (1.x/2.x)/Netscape format.
  398. </p>
  399. </li>
  400. <li>
  401. <p>
  402. Custom HTTP Header support
  403. </p>
  404. </li>
  405. <li>
  406. <p>
  407. Persistent Connections support
  408. </p>
  409. </li>
  410. <li>
  411. <p>
  412. FTP through HTTP Proxy
  413. </p>
  414. </li>
  415. <li>
  416. <p>
  417. Download/Upload speed throttling
  418. </p>
  419. </li>
  420. <li>
  421. <p>
  422. BitTorrent extensions: Fast extension, DHT, PEX, MSE/PSE, Multi-Tracker
  423. </p>
  424. </li>
  425. <li>
  426. <p>
  427. Run as a daemon process
  428. </p>
  429. </li>
  430. <li>
  431. <p>
  432. Selective download in multi-file torrent/Metalink
  433. </p>
  434. </li>
  435. <li>
  436. <p>
  437. Chunk checksum validation in Metalink
  438. </p>
  439. </li>
  440. <li>
  441. <p>
  442. Can disable segmented downloading in Metalink
  443. </p>
  444. </li>
  445. <li>
  446. <p>
  447. Netrc support
  448. </p>
  449. </li>
  450. <li>
  451. <p>
  452. Configuration file support
  453. </p>
  454. </li>
  455. <li>
  456. <p>
  457. Download URIs found in a text file or stdin and the destination directory and
  458. output filename can be specified optionally
  459. </p>
  460. </li>
  461. <li>
  462. <p>
  463. Parameterized URI support
  464. </p>
  465. </li>
  466. </ul></div>
  467. </div>
  468. <h2 id="_dependency">3. Dependency</h2>
  469. <div class="sectionbody">
  470. <div class="tableblock">
  471. <table rules="all"
  472. frame="border"
  473. cellspacing="0" cellpadding="4">
  474. <caption class="title">Table: External Library Dependency</caption>
  475. <col width="240" />
  476. <col width="320" />
  477. <thead>
  478. <tr>
  479. <th align="left">
  480. features
  481. </th>
  482. <th align="left">
  483. dependency
  484. </th>
  485. </tr>
  486. </thead>
  487. <tbody valign="top">
  488. <tr>
  489. <td align="left">
  490. HTTPS
  491. </td>
  492. <td align="left">
  493. GnuTLS or OpenSSL
  494. </td>
  495. </tr>
  496. <tr>
  497. <td align="left">
  498. BitTorrent
  499. </td>
  500. <td align="left">
  501. GnuTLS+Libgcrypt or OpenSSL
  502. </td>
  503. </tr>
  504. <tr>
  505. <td align="left">
  506. Metalink
  507. </td>
  508. <td align="left">
  509. libxml2 or Expat.
  510. </td>
  511. </tr>
  512. <tr>
  513. <td align="left">
  514. Checksum
  515. </td>
  516. <td align="left">
  517. GnuTLS+Libgcrypt or OpenSSL
  518. </td>
  519. </tr>
  520. <tr>
  521. <td align="left">
  522. gzip, deflate in HTTP
  523. </td>
  524. <td align="left">
  525. zlib
  526. </td>
  527. </tr>
  528. <tr>
  529. <td align="left">
  530. Async DNS
  531. </td>
  532. <td align="left">
  533. C-Ares
  534. </td>
  535. </tr>
  536. <tr>
  537. <td align="left">
  538. Firefox3 cookie
  539. </td>
  540. <td align="left">
  541. libsqlite3
  542. </td>
  543. </tr>
  544. </tbody>
  545. </table>
  546. </div>
  547. <div class="vlist"><dl>
  548. <dt>
  549. Note
  550. </dt>
  551. <dd>
  552. <p>
  553. GNU TLS has precedence over OpenSSL if both libraries are installed.
  554. If you prefer OpenSSL, run configure with "&#8212;without-gnutls".
  555. </p>
  556. </dd>
  557. <dt>
  558. Note
  559. </dt>
  560. <dd>
  561. <p>
  562. libxml2 has precedence over Expat if both libraries are installed.
  563. If you prefer Expat, run configure with "&#8212;without-libxml2".
  564. </p>
  565. </dd>
  566. </dl></div>
  567. <div class="para"><p>You can disable BitTorrent, Metalink support by providing
  568. &#8212;disable-bittorrent, &#8212;disable-metalink respectively to configure
  569. script.</p></div>
  570. <div class="para"><p>In order to enable async DNS support, you need c-ares.</p></div>
  571. <div class="ilist"><ul>
  572. <li>
  573. <p>
  574. c-ares: <a href="http://daniel.haxx.se/projects/c-ares/">http://daniel.haxx.se/projects/c-ares/</a>
  575. </p>
  576. </li>
  577. </ul></div>
  578. </div>
  579. <h2 id="_how_to_build">4. How to build</h2>
  580. <div class="sectionbody">
  581. <div class="para"><p>In order to build aria2 from the source package, you need following
  582. development packages(package name may vary depending on the
  583. distribution you use):</p></div>
  584. <div class="ilist"><ul>
  585. <li>
  586. <p>
  587. libgnutls-dev (Required for HTTPS, BitTorrent, Checksum support)
  588. </p>
  589. </li>
  590. <li>
  591. <p>
  592. libgpg-error-dev (Required for BitTorrent, Checksum support)
  593. </p>
  594. </li>
  595. <li>
  596. <p>
  597. libgcrypt-dev (Required for BitTorrent, Checksum support)
  598. </p>
  599. </li>
  600. <li>
  601. <p>
  602. libc-ares-dev (Required for async DNS support)
  603. </p>
  604. </li>
  605. <li>
  606. <p>
  607. libxml2-dev (Required for Metalink support)
  608. </p>
  609. </li>
  610. <li>
  611. <p>
  612. libz1g-dev (Required for gzip, deflate decoding support in HTTP)
  613. </p>
  614. </li>
  615. <li>
  616. <p>
  617. libsqlite3-dev (Required for Firefox3 cookie support)
  618. </p>
  619. </li>
  620. </ul></div>
  621. <div class="para"><p>You can use libssl-dev instead of
  622. libgnutls-dev,libgpg-error-dev,libgcrypt-dev:</p></div>
  623. <div class="ilist"><ul>
  624. <li>
  625. <p>
  626. libssl-dev (Required for HTTPS, BitTorrent, Checksum support)
  627. </p>
  628. </li>
  629. </ul></div>
  630. <div class="para"><p>You can use libexpat1-dev instead of libxml2-dev:</p></div>
  631. <div class="ilist"><ul>
  632. <li>
  633. <p>
  634. libexpat1-dev (Required for Metalink support)
  635. </p>
  636. </li>
  637. </ul></div>
  638. <div class="para"><p>The build process is fairly standard way for *nix programs:</p></div>
  639. <div class="listingblock">
  640. <div class="content">
  641. <pre><tt>$ ./configure
  642. $ make</tt></pre>
  643. </div></div>
  644. <div class="para"><p>The executable is aria2c in src directory.</p></div>
  645. <div class="para"><p>aria2 uses CppUnit for automated unit testing. To run run the unit test:</p></div>
  646. <div class="listingblock">
  647. <div class="content">
  648. <pre><tt>$ make check</tt></pre>
  649. </div></div>
  650. </div>
  651. <h2 id="_bittorrrent">5. BitTorrrent</h2>
  652. <div class="sectionbody">
  653. <h3 id="_about_filename">5.1. About filename</h3><div style="clear:left"></div>
  654. <div class="para"><p>The filename of the downloaded file is determined as follows:</p></div>
  655. <div class="vlist"><dl>
  656. <dt>
  657. single-file mode
  658. </dt>
  659. <dd>
  660. <p>
  661. If "name" key is present in .torrent file, filename is the value
  662. of "name" key. Otherwise, filename is the basename of .torrent
  663. file appended by ".file". For example, .torrent file is
  664. "test.torrrent", then filename is "test.torrent.file". The
  665. directory to store the downloaded file can be specified by -d
  666. option.
  667. </p>
  668. </dd>
  669. <dt>
  670. multi-file mode
  671. </dt>
  672. <dd>
  673. <p>
  674. The complete directory/file structure mentioned in .torrent file
  675. is created. The directory to store the top directory of
  676. downloaded files can be specified by -d option.
  677. </p>
  678. </dd>
  679. </dl></div>
  680. <div class="para"><p>In the default behavior, before download starts, a complete directory
  681. structure is created if needed. By default, aria2 opens at most 100
  682. files mentioned in .torrent file, directly writes to and reads from
  683. these files. The number of files to open simultaneously can be
  684. controlled by "&#8212;bt-max-open-files" option.</p></div>
  685. <div class="para"><p>If "&#8212;direct-file-mapping" option set to be false, aria2 creates
  686. temporary file in the store directory. The length of this file is the
  687. sum of length of the files in .torrent file, so at least 2 times more
  688. disk space than the file size itself is required. Writing and reading
  689. are done against this file. After download completes, aria2 creates
  690. complete directory structure if needed, and copies whole file or a
  691. part of it to the destination.</p></div>
  692. <h3 id="_dht">5.2. DHT</h3><div style="clear:left"></div>
  693. <div class="para"><p>As of release 0.13.0, aria2 supports DHT. By default, the routing
  694. table is saved to $HOME/.aria2/dht.dat.</p></div>
  695. <h3 id="_other_things_should_be_noted">5.3. Other things should be noted</h3><div style="clear:left"></div>
  696. <div class="ilist"><ul>
  697. <li>
  698. <p>
  699. -o option is used to change the filename of .torrent file itself,
  700. not a filename of a file in .torrent file.
  701. </p>
  702. </li>
  703. <li>
  704. <p>
  705. The port numbers that aria2 uses by default are 6881-6999 for TCP
  706. and UDP.
  707. </p>
  708. </li>
  709. <li>
  710. <p>
  711. aria2 doesn't configure port-forwarding automatically. Please
  712. configure your router or firewall manually.
  713. </p>
  714. </li>
  715. <li>
  716. <p>
  717. The maximum number of peers is 55. This limit may be exceeded when
  718. download rate is low. This download rate can be adjusted using
  719. &#8212;bt-request-peer-speed-limit option.
  720. </p>
  721. </li>
  722. <li>
  723. <p>
  724. As of release 0.10.0, aria2 stops sending request message after
  725. selective download completes.
  726. </p>
  727. </li>
  728. </ul></div>
  729. </div>
  730. <h2 id="_metalink">6. Metalink</h2>
  731. <div class="sectionbody">
  732. <div class="para"><p>The current implementation supports HTTP(S)/FTP/BitTorrent. The other
  733. P2P protocols are ignored.</p></div>
  734. <div class="para"><p>For checksum checking, MD5, SHA1, SHA256 are supported. If multiple
  735. hash algorithms are provided, aria2 uses SHA1. If checksum checking is
  736. failed, aria2 doesn't retry the download and just exits with non-zero
  737. return code.</p></div>
  738. <div class="para"><p>The supported user preferences are version, language, location,
  739. protocol and os.</p></div>
  740. <div class="para"><p>If chunk checksums are provided in Metalink file, aria2 automatically
  741. validates chunks of data during download. This behavior can be turned
  742. off by a command-line option.</p></div>
  743. <div class="para"><p>If signature is included in a Metalink file, aria2 saves it as a file
  744. after the completion of the download. The filename is download
  745. filename + ".sig". If same file already exists, the signature file is
  746. not saved.</p></div>
  747. </div>
  748. <h2 id="_netrc">7. netrc</h2>
  749. <div class="sectionbody">
  750. <div class="para"><p>netrc support is enabled by default for HTTP(S)/FTP. To disable netrc
  751. support, specify -n command-line option. Your .netrc file should have
  752. correct permissions(600).</p></div>
  753. </div>
  754. <h2 id="_server_performance_profile">8. SERVER PERFORMANCE PROFILE</h2>
  755. <div class="sectionbody">
  756. <div class="para"><p>This section describes the format of server performance profile. The
  757. file is plain text and each line has several NAME=VALUE pair,
  758. delimited by comma. Currently following NAMEs are recognized:</p></div>
  759. <div class="vlist"><dl>
  760. <dt>
  761. host
  762. </dt>
  763. <dd>
  764. <p>
  765. Hostname of the server. Required.
  766. </p>
  767. </dd>
  768. <dt>
  769. protocol
  770. </dt>
  771. <dd>
  772. <p>
  773. Protocol for this profile, such as ftp, http. Required.
  774. </p>
  775. </dd>
  776. <dt>
  777. dl_speed
  778. </dt>
  779. <dd>
  780. <p>
  781. The average download speed observed in the previous download in
  782. bytes per sec. Required.
  783. </p>
  784. </dd>
  785. <dt>
  786. last_updated
  787. </dt>
  788. <dd>
  789. <p>
  790. Last contact time in GMT with this server, specified in the seconds
  791. from the Epoch. Required.
  792. </p>
  793. </dd>
  794. <dt>
  795. status
  796. </dt>
  797. <dd>
  798. <p>
  799. ERROR is set when server cannot be reached or out-of-service or
  800. timeout occurred. Otherwise, OK is set.
  801. </p>
  802. </dd>
  803. </dl></div>
  804. <div class="para"><p>Those fields must exist in one line. The order of the fields is not
  805. significant. You can put pairs other than above but they are simply
  806. ignored.</p></div>
  807. <div class="para"><p>An example is follow:</p></div>
  808. <div class="listingblock">
  809. <div class="content">
  810. <pre><tt>host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  811. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR</tt></pre>
  812. </div></div>
  813. </div>
  814. <h2 id="_configuration_file">9. Configuration file</h2>
  815. <div class="sectionbody">
  816. <div class="para"><p>Configuration file must be placed under $HOME/.aria2 and must be named
  817. as aria2.conf. In each line, there is 1 parameter whose syntax is
  818. name=value pair, where name is the long command-line option name
  819. without <em>&#8212;</em> prefix. The lines beginning <em>#</em> are treated as comments.</p></div>
  820. <div class="para"><p>Example:</p></div>
  821. <div class="listingblock">
  822. <div class="content">
  823. <pre><tt># sample configuration file for aria2c
  824. listen-port=60000
  825. seed-ratio=1.0
  826. max-upload-limit=40K</tt></pre>
  827. </div></div>
  828. </div>
  829. <div id="footer">
  830. <div id="footer-text">
  831. Last updated 2008-12-02 01:48:13 JST
  832. </div>
  833. </div>
  834. </body>
  835. </html>