This file is indexed.

/usr/share/httrack/html/fcguide.html is in httrack-doc 3.44.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<meta name="description" content="HTTrack is an easy-to-use website mirror utility. It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuiltrelatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one toanother. You can, also, update an existing mirror site, or resume an interrupted download. The robot is fully configurable, with an integrated help" />
	<meta name="keywords" content="httrack, HTTRACK, HTTrack, winhttrack, WINHTTRACK, WinHTTrack, offline browser, web mirror utility, aspirateur web, surf offline, web capture, www mirror utility, browse offline, local  site builder, website mirroring, aspirateur www, internet grabber, capture de site web, internet tool, hors connexion, unix, dos, windows 95, windows 98, solaris, ibm580, AIX 4.0, HTS, HTGet, web aspirator, web aspirateur, libre, GPL, GNU, free software" />
	<title>HTTrack Website Copier - Offline Browser</title>

	<style type="text/css">
	<!--

body {
	margin: 0;  padding: 0;  margin-bottom: 15px;  margin-top: 8px;
	background: #77b;
}
body, td {
	font: 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	}

#subTitle {
	background: #000;  color: #fff;  padding: 4px;  font-weight: bold; 
	}

#siteNavigation a, #siteNavigation .current {
	font-weight: bold;  color: #448;
	}
#siteNavigation a:link    { text-decoration: none; }
#siteNavigation a:visited { text-decoration: none; }

#siteNavigation .current { background-color: #ccd; }

#siteNavigation a:hover   { text-decoration: none;  background-color: #fff;  color: #000; }
#siteNavigation a:active  { text-decoration: none;  background-color: #ccc; }


a:link    { text-decoration: underline;  color: #00f; }
a:visited { text-decoration: underline;  color: #000; }
a:hover   { text-decoration: underline;  color: #c00; }
a:active  { text-decoration: underline; }

#pageContent {
	clear: both;
	border-bottom: 6px solid #000;
	padding: 10px;  padding-top: 20px;
	line-height: 1.65em;
	background-image: url(images/bg_rings.gif);
	background-repeat: no-repeat;
	background-position: top right;
	}

#pageContent, #siteNavigation {
	background-color: #ccd;
	}


.imgLeft  { float: left;   margin-right: 10px;  margin-bottom: 10px; }
.imgRight { float: right;  margin-left: 10px;   margin-bottom: 10px; }

hr { height: 1px;  color: #000;  background-color: #000;  margin-bottom: 15px; }

h1 { margin: 0;  font-weight: bold;  font-size: 2em; }
h2 { margin: 0;  font-weight: bold;  font-size: 1.6em; }
h3 { margin: 0;  font-weight: bold;  font-size: 1.3em; }
h4 { margin: 0;  font-weight: bold;  font-size: 1.18em; }

.blak { background-color: #000; }
.hide { display: none; }
.tableWidth { min-width: 400px; }

.tblRegular       { border-collapse: collapse; }
.tblRegular td    { padding: 6px;  background-image: url(fade.gif);  border: 2px solid #99c; }
.tblHeaderColor, .tblHeaderColor td { background: #99c; }
.tblNoBorder td   { border: 0; }


// -->
</style>

</head>

<table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth">
	<tr>
	<td><img src="images/header_title_4.gif" width="400" height="34" alt="HTTrack Website Copier" title="" border="0" id="title" /></td>
	</tr>
</table>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="3" class="tableWidth">
	<tr>
	<td id="subTitle">Open Source offline browser</td>
	</tr>
</table>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth">
<tr class="blak">
<td>
	<table width="100%" border="0" align="center" cellspacing="1" cellpadding="0">
	<tr>
	<td colspan="6"> 
		<table width="100%" border="0" align="center" cellspacing="0" cellpadding="10">
		<tr> 
		<td id="pageContent"> 
<!-- ==================== End prologue ==================== -->

<center><h1> Httrack Users Guide (3.10)</h1>
By Fred Cohen </center>

<hr>

<h2> Background and Introduction </h2>

<p align=justify> I started using httrack in mid-2000 and found it to be
an excellent tool for imaging web sites.  Various words are used to
describe this process - from imaging to mirroring to snaking and so on. 
I will be using a variety of these words in my description.

<p align=justify> I have used many such tools over the years, have
performed many manual and semi-automatic operations of similar sorts,
and written partial programs to do similar functions, but - at least for
now - httrack seems to me to be the best option for this function. 

<p align=justify> The only problem I encountered when using httrack was
that it is so rich with features that I could never really figure out
precisely the right thing to do at any given point.  I was using
recepies rather than knowledge to get the job done - and I was pestering
the authors for those recepies.  After a few days of very helpful
assistance from the authors I volenteered to write a users manual for
httrack - and here it is.  I hope it gets the job done.

<hr>
<h2> Basics </h2>

<p align=justify> Httrack is a program that gets information from the
Internet, looks for pointers to other information, gets that
information, and so forth.  If you ask it to, and have enough disk
space, it will try to make a copy of the whole Internet on your
computer.  While this may be the answer to Dilbert's boss when he asks
to get a printout of the Internet for some legal document, for most of
us, we want to get copies of just the right part of the Internet, and
have them nicely organized for our use.  This is where httrack does a
great job. Here's a simple example:

<pre><b><i>
httrack "http://www.all.net/" -O "/tmp/www.all.net" "+*.all.net/*" -v
</i></b></pre>

<p align=justify> In this example, we ask httrack to start the Universal
Resource Locator (URL) http://www.all.net/ and store the results under
the directory /tmp/www.all.net (the -O stands for "output to") while not
going beyond the bounds of all the files in the www.all.net domain and
printing out any error messages along the way (-v means verbose).  This
is the most common way that I use httrack.  Please note that this
particular command might take you a while - and run you out of disk
space.

<p align=justify> This sort of a mirror image is not an identical copy
of the original web site - in some ways it's better such as for local
use - while in other ways it may be problematic - such as for legal use. 
This default mirroring method changes the URLs within the web site so
that the references are made relative to the location the copy is stored
in.  This makes it very useful for navigating through the web site on
your local machine with a web browser since most things will work as you
would expect them to work.  In this example, URLs that point outside of
the www.all.net domain space will still point there, and if you encounter
one, the web browser will try to get the data from that location. 

<p align=justify> For each of the issues discussed here - and many more
- httrack has options to allow you to make different choices and get
different results.  This is one of the great things about httrack - and
one of the the real major problems with using it without the knowledge
of all that it can do.  If you want to know all the things httrack can
do, you might try typing:

<pre><b><i>
httrack --help
</i></b></pre>

<p align=justify> Unfortunately, while this outputs a though list of
options, it is somewhat less helpful it might be for those who don't
know what the options all mean and haven't used them before.  On the
other hand, this is most useful for those who already know how to use
the program but don't remember some obscure option that they haven't
used for some time.

<p align=justify> The rest of this manual is dedicated to detailing what
you find in the help message and providing examples - lots and lots of
examples...  Here is what you get (page by page - use <enter> to move to
the next page in the real program) if you type 'httrack --help':

<pre>
>httrack --help
 HTTrack version 3.03BETAo4 (compiled Jul  1 2001)
	usage: ./httrack <URLs [-option] [+<FILTERs>] [-<FILTERs>]
	with options listed below: (* is the default value)

General options:
  O  path for mirror/logfiles+cache (-O path_mirror[,path_cache_and_logfiles]) (--path <param>)
 %O  top path if no path defined (-O path_mirror[,path_cache_and_logfiles])

Action options:
  w *mirror web sites (--mirror)
  W  mirror web sites, semi-automatic (asks questions) (--mirror-wizard)
  g  just get files (saved in the current directory) (--get-files)
  i  continue an interrupted mirror using the cache
  Y   mirror ALL links located in the first level pages (mirror links) (--mirrorlinks)

Proxy options:
  P  proxy use (-P proxy:port or -P user:pass@proxy:port) (--proxy <param>)
 %f *use proxy for ftp (f0 don't use) (--httpproxy-ftp[=N])

Limits options:
  rN set the mirror depth to N (* r9999) (--depth[=N])
 %eN set the external links depth to N (* %e0) (--ext-depth[=N])
  mN maximum file length for a non-html file (--max-files[=N])
  mN,N'                  for non html (N) and html (N')
  MN maximum overall size that can be uploaded/scanned (--max-size[=N])
  EN maximum mirror time in seconds (60=1 minute, 3600=1 hour) (--max-time[=N])
  AN maximum transfer rate in bytes/seconds (1000=1kb/s max) (--max-rate[=N])
 %cN maximum number of connections/seconds (*%c10)
  GN pause transfer if N bytes reached, and wait until lock file is deleted (--max-pause[=N])

Flow control:
  cN number of multiple connections (*c8) (--sockets[=N])
  TN timeout, number of seconds after a non-responding link is shutdown (--timeout)
  RN number of retries, in case of timeout or non-fatal errors (*R1) (--retries[=N])
  JN traffic jam control, minimum transfert rate (bytes/seconds) tolerated for a link (--min-rate[=N])
  HN host is abandonned if: 0=never, 1=timeout, 2=slow, 3=timeout or slow (--host-control[=N])

Links options:
 %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use) (--extended-parsing[=N])
  n  get non-html files 'near' an html file (ex: an image located outside) (--near)
  t  test all URLs (even forbidden ones) (--test)
 %L <file add all URL located in this text file (one URL per line) (--list <param>)

Build options:
  NN structure type (0 *original structure, 1+: see below) (--structure[=N])
     or user defined structure (-N "%h%p/%n%q.%t")
  LN long names (L1 *long names / L0 8-3 conversion) (--long-names[=N])
  KN keep original links (e.g. http://www.adr/link) (K0 *relative link, K absolute links, K3 absolute URI links) (--keep-links[=N])
  x  replace external html links by error pages (--replace-external)
 %x  do not include any password for external password protected websites (%x0 include) (--no-passwords)
 %q *include query string for local files (useless, for information purpose only) (%q0 don't include) (--include-query-string)
  o *generate output html file in case of error (404..) (o0 don't generate) (--generate-errors)
  X *purge old files after update (X0 keep delete) (--purge-old[=N])

Spider options:
  bN accept cookies in cookies.txt (0=do not accept,* 1=accept) (--cookies[=N])
  u  check document type if unknown (cgi,asp..) (u0 don't check, * u1 check but /, u2 check always) (--check-type[=N])
  j *parse Java Classes (j0 don't parse) (--parse-java[=N])
  sN follow robots.txt and meta robots tags (0=never,1=sometimes,* 2=always) (--robots[=N])
 %h  force HTTP/1.0 requests (reduce update features, only for old servers or proxies) (--http-10)
 %B  tolerant requests (accept bogus responses on some servers, but not standard!) (--tolerant)
 %s  update hacks: various hacks to limit re-transfers when updating (identical size, bogus response..) (--updatehack)
 %A  assume that a type (cgi,asp..) is always linked with a mime type (-%A php3=text/html) (--assume <param>)

Browser ID:
  F  user-agent field (-F "user-agent name") (--user-agent <param>)
 %F  footer string in Html code (-%F "Mirrored [from host %s [file %s [at %s]]]" (--footer <param>)
 %l  preffered language (-%l "fr, en, jp, *" (--language <param>)

Log, index, cache
  C  create/use a cache for updates and retries (C0 no cache,C1 cache is prioritary,* C2 test update before) (--cache[=N])
  k  store all files in cache (not useful if files on disk) (--store-all-in-cache)
 %n  do not re-download locally erased files (--do-not-recatch)
 %v  display on screen filenames downloaded (in realtime) (--display)
  Q  no log - quiet mode (--do-not-log)
  q  no questions - quiet mode (--quiet)
  z  log - extra infos (--extra-log)
  Z  log - debug (--debug-log)
  v  log on screen (--verbose)
  f *log in files (--file-log)
  f2 one single log file (--single-log)
  I *make an index (I0 don't make) (--index)
 %I  make an searchable index for this mirror (* %I0 don't make) (--search-index)

Expert options:
  pN priority mode: (* p3) (--priority[=N])
      0 just scan, don't save anything (for checking links)
      1 save only html files
      2 save only non html files
     *3 save all files
      7 get html files before, then treat other files
  S  stay on the same directory
  D *can only go down into subdirs
  U  can only go to upper directories
  B  can both go up&down into the directory structure
  a *stay on the same address
  d  stay on the same principal domain
  l  stay on the same TLD (eg: .com)
  e  go everywhere on the web
 %H  debug HTTP headers in logfile (--debug-headers)

Guru options: (do NOT use)
 #0  Filter test (-#0 '*.gif' 'www.bar.com/foo.gif')
 #f  Always flush log files
 #FN Maximum number of filters
 #h  Version info
 #K  Scan stdin (debug)
 #L  Maximum number of links (-#L1000000)
 #p  Display ugly progress information
 #P  Catch URL
 #R  Old FTP routines (debug)
 #T  Generate transfer ops. log every minutes
 #u  Wait time
 #Z  Generate transfer rate statictics every minutes
 #!  Execute a shell command (-#! "echo hello")

Command-line specific options:
  V execute system command after each files ($0 is the filename: -V "rm \$0") (--userdef-cmd <param>)
 %U run the engine with another id when called as root (-%U smith) (--user <param>)

Details: Option N
  N0 Site-structure (default)
  N1 HTML in web/, images/other files in web/images/
  N2 HTML in web/HTML, images/other in web/images
  N3 HTML in web/,  images/other in web/
  N4 HTML in web/, images/other in web/xxx, where xxx is the file extension<br>(all gif will be placed onto web/gif, for example)
  N5 Images/other in web/xxx and HTML in web/HTML
  N99 All files in web/, with random names (gadget !)
  N100 Site-structure, without www.domain.xxx/
  N101 Identical to N1 exept that "web" is replaced by the site's name
  N102 Identical to N2 exept that "web" is replaced by the site's name
  N103 Identical to N3 exept that "web" is replaced by the site's name
  N104 Identical to N4 exept that "web" is replaced by the site's name
  N105 Identical to N5 exept that "web" is replaced by the site's name
  N199 Identical to N99 exept that "web" is replaced by the site's name
  N1001 Identical to N1 exept that there is no "web" directory
  N1002 Identical to N2 exept that there is no "web" directory
  N1003 Identical to N3 exept that there is no "web" directory (option set for g option)
  N1004 Identical to N4 exept that there is no "web" directory
  N1005 Identical to N5 exept that there is no "web" directory
  N1099 Identical to N99 exept that there is no "web" directory
Details: User-defined option N
  %n Name of file without file type (ex: image) (--do-not-recatch)
  %N Name of file, including file type (ex: image.gif)
  %t File type (ex: gif)
  %p Path [without ending /] (ex: /someimages)
  %h Host name (ex: www.someweb.com) (--http-10)
  %M URL MD5 (128 bits, 32 ascii bytes)
  %Q query string MD5 (128 bits, 32 ascii bytes)
  %q small query string MD5 (16 bits, 4 ascii bytes) (--include-query-string)
     %s? Short name version (ex: %sN)
  %[param] param variable in query string

Shortcuts:
--mirror      <URLs *make a mirror of site(s) (default)
--get         <URLs  get the files indicated, do not seek other URLs (-qg)
--list   <text file  add all URL located in this text file (-%L)
--mirrorlinks <URLs  mirror all links in 1st level pages (-Y)
--testlinks   <URLs  test links in pages (-r1p0C0I0t)
--spider      <URLs  spider site(s), to test links: reports Errors & Warnings (-p0C0I0t)
--testsite    <URLs  identical to --spider
--skeleton    <URLs  make a mirror, but gets only html files (-p1)
--update              update a mirror, without confirmation (-iC2)
--continue            continue a mirror, without confirmation (-iC1)

--catchurl            create a temporary proxy to capture an URL or a form post URL
--clean               erase cache & log files

--http10              force http/1.0 requests (-%h)

example: httrack www.someweb.com/bob/
means:   mirror site www.someweb.com/bob/ and only this site

example: httrack www.someweb.com/bob/ www.anothertest.com/mike/ +*.com/*.jpg
means:   mirror the two sites together (with shared links) and accept any .jpg files on .com sites

example: httrack www.someweb.com/bob/bobby.html +* -r6
means get all files starting from bobby.html, with 6 link-depth, and possibility of going everywhere on the web

example: httrack www.someweb.com/bob/bobby.html --spider -P proxy.myhost.com:8080
runs the spider on www.someweb.com/bob/bobby.html using a proxy

example: httrack --update
updates a mirror in the current folder

example: httrack --continue
continues a mirror in the current folder

HTTrack version 3.03BETAo4 (compiled Jul  1 2001)
Copyright (C) Xavier Roche and other contributors
[compiled: Linux linux 2.2.18 #9 SMP Sat Dec 30 09:51:39 CET 2000 i586 unknown]

</pre>

<p align=justify> For many of you, the manual is now complete, but for
the rest of us, I will now go through this listing one item at a time
with examples... I will be here a while...

<hr>
<h2> Syntax </h2>

<pre><b><i>httrack <URLs> [-option] [+<FILTERs>] [-<FILTERs>] </i></b></pre>

<p align=justify> The syntax of httrack is quite simple.  You specify
the URLs you wish to start the process from (<URLS>), any options you
might want to add ([-option], any filters specifying places you should
([+<FILTERs>]) and should not ([-<FILTERs>]) go, and end the command
line by pressing <enter>.  Httrack then goes off and does your bidding.
For example:

<pre><b><i>
httrack www.all.net/bob/
</i></b></pre>

<p align=justify> This will use the 'defaults' (those selections from
the help page marked with '*' in the listing above) to image the web
site. Specifically, the defauls are:

<pre>
  w *mirror web sites
 %f *use proxy for ftp (f0 don't use)
  cN number of multiple connections (*c8)
  RN number of retries, in case of timeout or non-fatal errors (*R1)
 %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use)
  NN  name conversion type (0 *original structure, 1+: see below)
  LN  long names (L1 *long names / L0 8-3 conversion)
  K   keep original links (e.g. http://www.adr/link) (K0 *relative link)
  o *generate output html file in case of error (404..) (o0 don't generate)
  X *purge old files after update (X0 keep delete)
  bN  accept cookies in cookies.txt (0=do not accept,* 1=accept)
  u check document type if unknown (cgi,asp..) (u0 don't check, * u1 check but /, u2 check always)
  j *parse Java Classes (j0 don't parse)
  sN  follow robots.txt and meta robots tags (0=never,1=sometimes,* 2=always)
  C  create/use a cache for updates and retries (C0 no cache,C1 cache is prioritary,* C2 test update before)
  f *log file mode
  I *make an index (I0 don't make)
  pN priority mode: (* p3)  *3 save all files
  D  *can only go down into subdirs
  a  *stay on the same address
  --mirror      <URLs> *make a mirror of site(s) (default)
</pre>

<p align=justify> Here's what all of that means:

<ul>
<pre><b><i>  w *mirror web sites </i></b></pre>

<p align=justify> Automatically go though each URL you download and look
for links to other URLs inside it, dowloading them as well. 

<pre><b><i> %f *use proxy for ftp (f0 don't use) </i></b></pre>

<p align=justify> If there are and links to ftp URLs (URLs using the
file transfer protocol (FTP) rather than the hypertext transfer protocol
HTTP), go through an ftp proxy server to get them.

<pre><b><i>  cN number of multiple connections (*c8) </i></b></pre>

<p align=justify> Use up to 8 simultaneous downloads so that at any
gioven time, up to 8 URLs may be underway. 

<pre><b><i>  RN number of retries, in case of timeout or non-fatal errors (*R1) </i></b></pre>

<p align=justify> Retry once if anything goes wrong with a download. 

<pre><b><i> %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use) </i></b></pre>

<p align=justify> Try to parse all URLs - even if they are in
Javascript, Java, tags of unknown types, or anywhere else the program
can find things. 

<pre><b><i>  NN  name conversion type (0 *original structure, 1+: see below) </i></b></pre>

<p align=justify> Use the original directory and file structure of the
web site in your mirror image of the site.

<pre><b><i>  LN  long names (L1 *long names / L0 8-3 conversion) </i></b></pre>

<p align=justify> If filenames do not follow the old DOS conventions,
store them with the same names used on the web site.

<pre><b><i>  K   keep original links (e.g. http://www.adr/link) (K0 *relative link) </i></b></pre>

<p align=justify> Use relative rather than the original links so that
URLs within this web site are adjusted to point to the files in the
mirror.

<pre><b><i>  o *generate output html file in case of error (404..) (o0 don't generate) </i></b></pre>

<p align=justify> IF there are errors in downloading, create a file that
indicates that the URL was not found.  This makes browsing go a lot
smoother.

<pre><b><i>  X *purge old files after update (X0 keep delete) </i></b></pre>

<p align=justify> Files not found on the web site that were previously
there get deleted so that you have an accurate snapshot of the site as
it is today - losing historical data. 

<pre><b><i>  bN  accept cookies in cookies.txt (0=do not accept,* 1=accept) </i></b></pre>

<p align=justify> Accept all cokkies sent to you and return them if
requested.  This is required for many sites to function.  These cookies
are only kept relative to the specific site, so you don't have to worry
about your browser retaining them.

<pre><b><i>  u check document type if unknown (cgi,asp..) (u0 don't check, * u1 check but /, u2 check always) </i></b></pre>

<p align=justify> This causes different document types to be analyzed
differently.

<pre><b><i>  j *parse Java Classes (j0 don't parse) </i></b></pre>

<p align=justify> This causes Java class files to be parsed looking for
URLs.

<pre><b><i>  sN  follow robots.txt and meta robots tags (0=never,1=sometimes,* 2=always) </i></b></pre>

<p align=justify> This tells the program to follow the wishes of the
site owner with respect to limiting where robots like this one search. 

<pre><b><i>  C  create/use a cache for updates and retries (C0 no cache,C1 cache is prioritary,* C2 test update before) </i></b></pre>

<p align=justify> If you are downloading a site you have a previous copy
of, supplemental parameters are transmitted to the server, for example
the 'If-Modified-Since:' field will be used to see if files are newer
than the last copy you have.  If they are newer, they will be
downloaded, otherwise, they will not. 

<pre><b><i>  f *log file mode </i></b></pre>

<p align=justify> This retains a detailed log of any important events
that took place. 

<pre><b><i>  I *make an index (I0 don't make) </i></b></pre>

<p align=justify> This makes a top-level index.html file so that if you
image a set of sites, you can have one place to start reviewing the set
of sites. 

<pre><b><i>  pN priority mode: (* p3)  *3 save all files </i></b></pre>

<p align=justify> This will cause all downloaded files to be saved. 

<pre><b><i>  D  *can only go down into subdirs </i></b></pre>

<p align=justify> This prevents the program from going to higher level
directories than the initial subdirectory, but allows lower-level
subdirectories of the starting directory to be investigated. 

<pre><b><i>  a  *stay on the same address </i></b></pre>

<p align=justify> This indicates that only the web site(s) where the
search started are to be collected.  Other sites they point to are not
to be imaged. 

<pre><b><i>  --mirror      <URLs> *make a mirror of site(s) (default) </i></b></pre>

<p align=justify> This indicates that the program should try to make a
copy of the site as well as it can. 

</ul>

<p align=justify> Now that's a lot of options for the default - but of
course there are a lot more options to go.  For the most part, the rest
of the options represent variations on these themes.  For example,
instead of saving all files, we might only want to save html files, or
instead of 8 simultaneous sessions, we might want only 4.

<p align=justify> If we wanted to make one of these changes, we would
specify the option on the command line. For example:

<pre><b><i>
httrack www.all.net/bob/ -c4 -B
</i></b></pre>

<p align=justify> This would restrict httrack to only use 4
siumultaneous sessions but allow it to go up the directory structure
(for example to www.all.net/joe/) as well as down it (for example to
www.all.net/bob/deeper/).

<p align=justify> You can add a lot of options to a command line!

<hr>

<h2> A Thorough Going Over </h2>

<p align=justify> Now that you have an introduction, it's time for a
more though coverage.  This is where I go through each of the options
and describe it in detail with examples...  Actually, I won't quite do
that.  But I will get close.

<p align=justify> Options tend to come in groups.  Each group tends to
be interrelated, so it's easier and more useful to go through them a
group at a time with some baseline project in mind.  In my case, the
project is to collect all of the information on the Internet about some
given subject.  We will assume that, through a previous process, I have
gotten a list of URLs of interest to me.  Typically there will be
hundreds of these URLs, and they will be a mixed bag of sites that are
full of desired information, pages with lists of pointers to other
sites, URLs of portions of a web site that are of interest (like Bob's
home pages and subdirectories), and so forth.  Let us say that for today
we are looking for the definitive colleciton of Internet information on
shoe sizes from around the world. 

<hr>
<h3>General Options</h3>

<pre><b><i>
General options:
  O  path for mirror/logfiles+cache (-O path_mirror[,path_cache_and_logfiles])
</i></b></pre>

<p align=justify> For this project, I will want to keep all of the
information I gather in one place, so I will specify that output area of
the project as /tmp/shoesizes by adding '<b><i>-O
/tmp/shoesizes</i></b>' to every command line I use.. for example:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes
</i></b></pre>

<p align=justify> The action options tell httrack how to operate at the
larger level.

<hr>
<h3>Action Options</h3>

<pre><b><i>
Action options:
  w *mirror web sites
  W  mirror web sites, semi-automatic (asks questions)
  g  just get files (saved in the current directory)
  i  continue an interrupted mirror using the cache
  Y   mirror ALL links located in the first level pages (mirror links)
</i></b></pre>

<p align=justify> If I want httrack to ask me questions - such as what
options to use, what sites to mirror, etc.  I can tell it to ask these
questions as follows:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -W
</i></b><pre>


<p align=justify> I can also do:

<pre><b><i>httrack</i></b></pre>
OR
<pre><b><i>httrack -W</i></b></pre>
OR
<pre><b><i>httrack -w</i></b></pre>

<p align=justify> The '-W' options asks whether the or not a site has to
be mirrored, while the '-w' option does not ask this question but asks
the remainder of the questions required to mirror the site.

<p align=justify> The -g option allows you to get the files exactly as
they are and store them in the currant directory.  This is handy for a
relatively small collection of information where organization isn't
important.  With this option, the html files will not even be parsed to
look for other URLs.  This option is useful for getting isolated files
(e.g., httrack -g www.mydrivers.com/drivers/windrv32.exe). 


<p align=justify> If I start a collection process and it fails for ome
reason or another - such as me interrupting it because I am running out
of disk space - or a network outage - then I can restart the process by
using the -i option:

<pre><b><i>httrack http://www.shoesizes.com -O /tmp/shoesizes -i </i></b></pre>

<p align=justify> Finally, I can mirror all links in the first level
pages of the URLs I specify.  A good example of where to use whis would
be in a case where I have a page that points to a lot of other sites and
I want to get the initial information on those sites before mirroring
them:

<pre><b><i>httrack http://www.shoesizes.com/othersites.html -O /tmp/shoesizes -Y </i></b></pre>

<hr>
<h3>Proxy Options</h3>

<p align=justify> Many users use a proxy for many of their functions. 
This is a key component in many firewalls, but it is also commonly used
for anonymizing access and for exploiting higher speed communications at
a remote server.

<pre><b><i>Proxy options:
  P  proxy use (-P proxy:port or -P user:pass@proxy:port)
 %f *use proxy for ftp (f0 don't use)
</i></b></pre>

<p align=justify> If you are using a standard proxy that doesn't require
a user ID and password, you would do something like this:

<pre><b><i>httrack http://www.shoesizes.com -O /tmp/shoesizes -P proxy.www.all.net:8080 </i></b></pre>

<p align=justify> In this case, we have asusmed that proxy.www.all.net is
the host that does the proxy service and that it uses port 8080 for this
service.  In some cases you will have to ask your network or firewall
administrator for these details, however, in most cases they should be
the same as the options used in your web browser.

<p align=justify> In some cases, a user ID and password are required for
the proxy server.  This is common in corporate environments where only
authorized users may access the Internet.

<pre><b><i>httrack http://www.shoesizes.com -O /tmp/shoesizes -P fc:password@proxy.www.all.net:8080 </i></b></pre>

<p align=justify> In this case, the user ID 'fc' and the password
'password' are used on proxy.www.all.net port 8080.  Again, your network or
firewall administrator can be most helpful in addressing the specifics
for your environment. 

<p align=justify> FTP normally operates through a proxy server, but for systems
that have direct connections to the Internet, the following option should help:

<pre><b><i>httrack ftp://ftp.shoesizes.com -O /tmp/shoesizes -%f0 </i></b></pre>

<hr>
<h3>Limits Options</h3>

<pre><b><i>
Limits options:
  rN set the mirror depth to N
  mN maximum file length for a non-html file
  mN,N'                  for non html (N) and html (N')
  MN maximum overall size that can be uploaded/scanned
  EN maximum mirror time in seconds (60=1 minute, 3600=1 hour)
  AN maximum transfer rate in bytes/seconds (1000=1kb/s max)
  GN pause transfer if N bytes reached, and wait until lock file is deleted
  %eN set the external links depth to N (* %e0) (--ext-depth[=N])
  %cN maximum number of connections/seconds (*%c10)
</i></b></pre>

<p align=justify> Setting limits provides the means by which you can
avoid running out of disk space, CPU time, and so forth.  This may be
particularly helpful for those who accidentally try to image the whole
Internet. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -r50
</i></b></pre>

<p align=justify> In this example, we limit the directlry depth to 50
levels deep.  As a general rule, web sites don't go much deeper than 20
levels or so, and if you think about it, if there are only 2
subdirectories per directory level, a directory structure 50 deep would
have about 10 trillion directories.  Of course many sites have a small
number of files many levels deep in a directory structure for various
reasons.  In some cases, a symbolic link will cause an infinite
recursion of directory levels as well, so placing a limit may be
advisable.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -m50000000
</i></b></pre>

<p align=justify> This example sets the maximum file length for non-HTML
files to 50 megabytes.  This is not an unusual length for things like
tar files, and in some cases - for example when there are images of
CD-ROMs to fetch from sites, you might want a limit more like 750
megabytes.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -m50000000,100000
</i></b></pre>

<p align=justify> In this example, we have set a limit for html files
as well - at 100,000 bytes.  HTML files are rarely larger than this,
however, in some cases larger sizes may be needed. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -M1000000000
</i></b></pre>

<p align=justify> This option sets the maximum total size - in bytes -
that can be uploaded from a site - in this case to 1 gigabyte. 
Depending on how much disk space you have, such an option may be
worthwhile.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -E3600
</i></b></pre>

<p align=justify> This sets the maximum runtime for the download
process.  Of course depending on the speed of your connection it may
take longer or shorter runtimes to get the same job done, and network
traffic is also a factor.  3600 seconds corresponds to one hour. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes A100000000
</i></b></pre>

<p align=justify> This option specifies the largest number of bytes per
second that should be used for transfers.  For example, you might want
to go slow for some servers that are heavily loaded in the middle of the
day, or to download slowly so that the servers at the other end are less
likely to identify you as mirroring their site.  The setting above
limits my bandwidth to 100 million bytes per second - slow I know, but I
wouldn't want to stress the rest of the Internet.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -G100000000
</i></b></pre>

<p align=justify> In this case, the G option is used to 'pause' a
download after the first gigabyte is downloaded pending manual removal
of the lockfile.  This is handy of you want to download some portion of
the data, move it to secondary storage, and then continue - or if you
want to only download overnight and want to stop before daylight and
continue the next evening.  You could even combine this option with a
cron job to remove the lock file so that the job automatically restarts
at 7PM every night and gets another gigabyte.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes %e5
</i></b></pre>

<p align=justify> In this case, httrack will only go to depth 5 for external links,
thus not imaging the entire web, but only yhose links within 5 links of these web pages.

<p align=justify> Also note that the interaction of these options may
cause unintended consequences.  For example, limiting bandwidth and
download time conspire to limit the total amount of data that can
be downloaded.

<hr>
<h3>Flow Control Options</h3>

<pre><b><i>
Flow control:
  cN number of multiple connections (*c8)
  %cN maximum number of connections/seconds (*%c10)
  TN timeout, number of seconds after a non-responding link is shutdown
  RN number of retries, in case of timeout or non-fatal errors (*R1)
  JN traffic jam control, minimum transfert rate (bytes/seconds) tolerated for a link
  HN host is abandonned if: 0=never, 1=timeout, 2=slow, 3=timeout or slow
</i></b>

<p align=justify> This example allows up to 128 simultaneous downloads. 
Note that this is likely to crash remote web servers - or at least fail
to download many of the files - because of limits on the number of
simultaneous sessions at many sites.  At busy times of day, you might
want to lower this to 1 or 2, especially at sites that limit the number
of simultaneous users. Otherwise you will not get all of the downloads.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -c128
</i></b></pre>

<p align=justify> Many operating systems have a limit of 64 file
handles, including internet connections and all other files that can be
opened.  Therefore, in many cases, more that 48 connections might cause
a "socket error" because the OS can not handle that many sockets.  This
is also true for many servers.  As an example, a test with 48 sockets on
a cgi-based web server (Pentium 166,80Meg RAM) overloaded the machine
and stopped other services from running correctly.  Some servers will
ban users that try to brutally download the website.  8 sockets is
generally good, but when I'm getting large files (e.g., from a a site
with large graphical images) 1 or 2 sockets is a better selection.  Here
are some other figures from one sample set of runs:

<ul><pre>
Tests: on a 10/100Mbps network, 30MB website, 99 files (70 images (some are
little, other are big (few MB)), 23 HTML)
With 8 sockets: 1,24MB/s
With 48 sockets: 1,30MB/s
With 128 sockets: 0,93MB/s
</pre></ul>

<p align=justify> The timeout option causes downloads to time out after
a non-response from a download attempt.  30 seconds is pretty reasonable
for many sites.  You might want to increase the number of retries as
well so that you try again and again after such timeouts. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%c20
</i></b></pre>

<p align=justify> This limits the number of connections per second.  It
is similar to the above option but allows the pace to be controlled
rather than the simultanaety.  It is particulsrly useful for long-term
pulls at low rates that allow little impact on remote infrastructure.
The default is 10 connections per second.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -T30
</i></b></pre>

<p align=justify> This example increases the number of retries to 5. 
This means that if a download fails 5 times, httrack will give up on it. 
For relatively unreliable sites - or for busy times of day, this number
should be higher.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -R5
</i></b></pre>

<p align=justify> This is an interesting option.  It says that in a
traffic jam - where downloads are excessively slow - we might decide to
back off the download.  In this case, we have limited downloads to stop
bothering once we reach 10 bytes per second.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -J10
</i></b></pre>

<p align=justify> These three options will cause the download from a
host to be abandoned if (respectively) (0) never, (1) a timeout is
reached, (2) slow traffic is detected, (or) (3) a timeout is reached OR
slow traffic is detected. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -H0
httrack http://www.shoesizes.com -O /tmp/shoesizes -H1
httrack http://www.shoesizes.com -O /tmp/shoesizes -H2
httrack http://www.shoesizes.com -O /tmp/shoesizes -H3
</i></b></pre>

<p align=justify> Of course these options can be combined to provide a
powerful set of criteria for when to continue a download and when to
give it up, how hard to push other sites.  and how much to stress
infrastructures. 

<hr>
<h3>Link Following Options</h3>

<pre><b><i>
Links options:
 %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use)
  n   get non-html files 'near' an html file (ex: an image located outside)
  t   test all URLs (even forbidden ones)
 %L <file> add all URL located in this text file (one URL per line)
</i></b></pre>

<p align=justify> The links options allow you to control what links are
followed and what links are not as well as to provide long lists of
links to investigate.  Any setting other than the default for this
option forces the engine to use less reliable and more complex parsing. 
'Dirty' parsing means that links like 'xsgfd syaze="foo.gif"' will cause
HTTrack to download foo.gif, even if HTTrack don't know what the "xsgfd
syaze=" tag actually means! This option is powerful because some links
might otherwise be missed, but it can cause errors in HTML or javascript.

<p align=justify> This will direct the program to NOT search Javascript
for unknown tag fields (e.g., it will find things like
foo.location="bar.html"; but will not find things like bar="foo.gif";). 
While I have never had a reason to use this, some users may decide that
they want to be more conservative in their searches.  As a note,
javascript imported files (.js) are not currently searched for URLs.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes '%P0'
</i></b></pre>

<p align=justify> Now here is a classic bit of cleaverness that 'does
the right thing' for some cases.  In this instance, we are asking
httrack to get images - like gif and jpeg files that are used by a web
page in its display, even though we would not normally get them.  For
example, if we were only getting a portion of a web site (e.g.,
everything under the 'bob directory') we might want to get graphics from
the rest of the web sote - or the rest of the web - that are used in
those pages as well so that our mirror will look right.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -n
</i></b></pre>

<p align=justify> Here, we limit the collection to bob's area of the
server - except that we get images and other such things that are used
by bob in his area of the server.

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -n
</i></b></pre>

<p align=justify> This option 'tests' all links - even those forbidden
(by the robot exclusion protocol) - by using the 'HEAD' protocol to test
for the presence of a file. 

<pre><b><i>
httrack http://www.shoesizes.com/ -O /tmp/shoesizes -t
</i></b></pre>

<p align=justify> In this case, we use a file to list the URLs we wish
to mirror.  This is particularly useful when we have a lot to do and
don't want to tirelessly type in URLs on command line after command line. 
It's also useful - for example - if you update a set of mirrored sites
evey evening.  You can set up a command like this to run automatically
from your cron file.

<pre><b><i>
httrack -%L linkfile -O /tmp/shoesizes
</i></b></pre>

<p align=justify> This will update the mirror of your list of sites
whenever it is run. 

<pre><b><i>
httrack -%L linkfile -O /tmp/shoesizes -B --update
</i></b></pre>

<p align=justify> The link file is also useful for things like this
example where, after a binary image of a hard disk was analyzed (image)
URLs found on that disk were collected by httrack:

<pre><b><i>
strings image | grep "http://" > list;
httrack -%L list -O /tmp/shoesizes
</i></b></pre>


<hr>
<h3>Mirror Build Options</h3>

<pre><b><i>
Build options:
  NN  name conversion type (0 *original structure, 1+: see below)
  N   user defined structure (-N "%h%p/%n%q.%t")
  LN  long names (L1 *long names / L0 8-3 conversion)
  K   keep original links (e.g. http://www.adr/link) (K0 *relative link)
  x   replace external html links by error pages
  o *generate output html file in case of error (404..) (o0 don't generate)
  X *purge old files after update (X0 keep delete)
  %x  do not include any password for external password protected websites (%x0 include) (--no-passwords)
  %q *include query string for local files (information only) (%q0 don't include) (--include-query-string)
</i></b></pre>

<p align=justify> The user can define naming conventions for building
the mirror of a site by using these options.  For example, to retain the
original structure, the default is used.  This only modifies the
structure to the extent that select characters (e.g., ~, :, <, >, \, and
@) are replaced by _ in all pathnames. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -N0
</i></b></pre>
<p align=justify> OR
<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes
</i></b></pre>

<p align=justify> In either case, the mirror will build with the same
directory hierarchy and name structure as the original site.  For cases
when you want to define your own structure, you use a string like this:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -N "%h%p/%n.%t"
</i></b></pre>

<p align=justify> In this case, %h, %p, $n, and %t stand for the href
element (e.g., http://www.shoesizes.com or ftp://ftp.shoesizes.com), %p
stands for the pathname (e.g., /bob/), %n stands for the name of the
file, and %t stands for type (file extension).  The full list of these
options follows:

<ul><pre>
%n      Name of file without file type (ex: image)
%N      Name of file, including file type (ex: image.gif)
%t      File type (ex: gif)
%p      Path [without ending /] (ex: /someimages)
%h      Host name (ex: www.all.net)
%M      URL MD5 (128 bits, 32 ascii bytes)
%Q      query string MD5 (128 bits, 32 ascii bytes)
%q      small query string MD5 (16 bits, 4 ascii bytes)
%s?     Short name version (ex: %sN)
</pre></ul>

<p align=justify> Other 'N' options include:

<ul>
<pre><b><i>
Details: Option N
  N0 Site-structure (default)
  N1 HTML in web/, images/other files in web/images/
  N2 HTML in web/HTML, images/other in web/images
  N3 HTML in web/,  images/other in web/
  N4 HTML in web/, images/other in web/xxx, where xxx is the file extension<br>(all gif will be placed onto web/gif, for example)
  N5 Images/other in web/xxx and HTML in web/HTML
  N99 All files in web/, with random names (gadget !)
  N100 Site-structure, without www.domain.xxx/
  N101 Identical to N1 exept that "web" is replaced by the site's name
  N102 Identical to N2 exept that "web" is replaced by the site's name
  N103 Identical to N3 exept that "web" is replaced by the site's name
  N104 Identical to N4 exept that "web" is replaced by the site's name
  N105 Identical to N5 exept that "web" is replaced by the site's name
  N199 Identical to N99 exept that "web" is replaced by the site's name
  N1001 Identical to N1 exept that there is no "web" directory
  N1002 Identical to N2 exept that there is no "web" directory
  N1003 Identical to N3 exept that there is no "web" directory (option set for g option)
  N1004 Identical to N4 exept that there is no "web" directory
  N1005 Identical to N5 exept that there is no "web" directory
  N1099 Identical to N99 exept that there is no "web" directory
</i></b></pre>
</ul>

<p align=justify> Long names are normally used (the <b><i>-L0</i></b>
option) but if you are imaging to a DOS file system or want
accessibility from older versions of DOS and Windows, you can use the
<b><i>-L1</i></b> option to generate these filename sizes. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -L1
</i></b></pre>

<p align=justify> With the 'K' option, you can keep the original links
in files.  While this is less useful in being able to view a web site
froim the mirrored copy, it is vitally important if you want an accurate
copy of exactly what was on the web site in the first place.  In a
forensic image, for example, you might want to use this option to
prevent the program from modifying the data as it is collected. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -K
</i></b></pre>

<p align=justify> In this case, instead of leaving external links (URLs
that point to sites not being mirrored) in the pages, these links are
replaced by pages that leave messages indicating that they could not be
found.  This is useful for local mirrors not on the Internet or mirrors
that are on the Internet but that are not supposed to lead users to
external sites.  A really good use for this is that 'bugging' devices
placed in web pages to track who is using them and from where will be
deactivated byt his process. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -x
</i></b></pre>

<p align=justify> This option prevents the generation of '404' error
files to replace files that were not found even though there were URLs
pointing to them.  It is useful for saving space as well as eliminating
unnecessary files in operations where a working web site is not the
desired result. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -o0
</i></b></pre>

<p align=justify> This option prevents the authoatic purging of files
from the mirror site that were not found in the original web site after
an 'update' is done.  If you want to retain old data and old names for
files that were renamed, this option should be used.  If you want an
up-to-date reflection of the current web site, you should not use this option.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -X0
</i></b></pre>

<p align=justify> These options can be combined as desired to produce a
wide range of different arrangements, from collections of only graphical
files stored in a graphics area, to files identified by their MD5
checksums only, all stored in the same directory.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes %x0 include
</i></b></pre>

<p align=justify> This will not include passwords for web sites.  If you
mirror http://smith_john:foobar@www.privatefoo.com/smith/, and exclude
using filters some links, these links will be by default rewritten with
password data.  For example, "bar.html" will be renamed into
http://smith_john:foobar@www.privatefoo.com/smith/bar.html This can be a
problem if you don't want to disclose the username/password! The %x
option tell the engine not to include username/password data in
rewritten URLs.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes %q
</i></b></pre>

<p align=justify> This option is not very useful, because parameters are
useless, as pages are not dynamic anymore when mirrored.  But some
javascript code may use the query string, and it can give useful
information.  For example: catalog4FB8.html?page=computer-science is
clearer than catalog4FB8.html Therefore, this option is activated by
default.

<hr>
<h3>Spider Options</h3>

<p align=justify> These options provide for automation with regard to
the remote server.  For example, some sites require that cookies be
accepted and sent back in order to allow access.

<pre><b><i>
Spider options:
 bN  accept cookies in cookies.txt (0=do not accept,* 1=accept)
 u   check document type if unknown (cgi,asp..) (u0 don't check, * u1 check but /, u2 check always)
 j   *parse Java Classes (j0 don't parse)
 sN  follow robots.txt and meta robots tags (0=never,1=sometimes,* 2=always)
 %h  force HTTP/1.0 requests (reduce update features, only for old servers or proxies)
 %B  tolerant requests (accept bogus responses on some servers, but not standard!)
 %s  update hacks: various hacks to limit re-transfers when updating
 %A  assume that a type (cgi,asp..) is always linked with a mime type (-%A php3=text/html) (--assume <param>)
</i></b></pre>

<p align=justify> By default, cookies are universally accepted and
returned.  This makes for more effective collection of data, but allows
the site to be identified with its collection of data more easily. To
disable cookies, use this option:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -b0
</i></b></pre>

<p align=justify> Some documents have known extension types (e.g.,
html), while others have unknown types (e.g., iuh87Zs) and others may
have misleading types (e.g., an html file with a 'gif' file extension. 
These options provide for (0) not checking file types, (1) checking all
file types except directories, and (2) checking all file types including
directories. Choose from these options:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -u0
httrack http://www.shoesizes.com -O /tmp/shoesizes -u1
httrack http://www.shoesizes.com -O /tmp/shoesizes -u2
</i></b></pre>

<p align=justify> Meta tags or 'robots.txt' files on a web site are used
to indicate what files should and should not be visited by automatic
programs when collectiong data.  The polite and prudent move for normal
data collection (and the default) is to follow this indication:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -s2
</i></b></pre>

<p align=justify> This follows the robots protocol and meta-tags EXCEPT
in cases where the filters disagree with the robots protocols or
meta-tags. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -s1
</i></b></pre>

<p align=justify> In this next case, we ignore meta-tags and robots.txt
files completely and just take whatever we can get from the site.  The
danger of this includes the fact that automated programs - like games or
search engines may generate an unlimited number of nearly identical or
identical outputs that will put us in an infinite loop collecting
useless data under different names.  The benefit is that we will get all
the data there is to get. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -s0
</i></b></pre>

<p align=justify> This next option uses strict HTTP/1.0 protocol.  This
means the program will use HTTP/1.0 headers (as in RFC1945.TXT) and NOT
extended 1.1 features described in RFC2616.TXT.  For example, reget
(complete a partially downloaded file) is a HTTP/1.1 feature.  The Etag
feature is also a HTTP/1.1 feature (Etag is a special identifier that
allow to easily detect file changes).

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%h
</i></b></pre>

<p align=justify> Some servers give responses not strictly within the
requirements of the official http protocol.  These 'Bogus' responses can
be accepted by using this option.  For example, when requesting foo.gif
(5132 bytes), the server can, optionally, add:
<pre>
Content-length: 5132
</pre>

<p align=justify> This helps the client by allowing it to reserve a
block of memory, instead of collecting each byte and re-reserving memory
each time data is being received.  But some servers are bogus, and send
a wrong filesize.  When HTtrack detects the end of file (connection
broken), there are three cases:

<ul>

<p align=justify> 1- The connection has been closed by the server, and we
have received all data (we have received the number of bytes incicated
by the server).  This is fine because we have successfully received the
file. 

<p align=justify> 2- The connection has been closed by the server, BUT
the filesize received is different from the server's headers: the
connection has been suddenly closed, due to network problems, so we
reget the file

<p align=justify> 3- The connetion has been closed by the server, the
filesize received is different from the server's headers, BUT the file
is complete, because the server gave us a WRONG information!  In this
case, we use the bogus server option:
</ul>

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%B
</i></b></pre>

<p align=justify> These options can be combined for the particular needs
of the situaiton and are often adapted as a result of site-specific
experiences.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%s
</i></b></pre>

<p align=justify> This is a collection of "tricks" which are not really
"RFC compliant" but which can save bandwidth by trying not to retransfer
data in several cases.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%A asp=text/html
</i></b></pre>

<p align=justify> The most important new feature for some people, maybe. 
This option tells the engine that if a link is en countered, with a
specific type (.cgi, .asp, or .php3 for example), it MUST assume that
this link has always the same MIME type, for example the "text/html"
MIME type.  This is VERY important to speed up many mirrors. 

<p align=justify> We have done tests on big HTML files (approx.  150 MB,
150,000,000 bytes!) with 100,000 links inside.  Such files are being
parsed in approx.  20 seconds on my own PC by the latest optimized
releases of HTTra ck.  But these tests have been done with links of
known types, that is, html, gif, and so on..  If you have, say, 10,000
links of unknown type, such as ".asp", this will cause the engine to
test ALL t hese files, and this will SLOOOOW down the parser.  In this
example, the parser will take hours, instead of 20 seconds! In this
case, it would be great to tell HTTrack: ".asp pages are in fact HTML
pages" This is possible, using: -%A asp=text/html

<p align=justify> The -%A option can be replaced by the alias --assume
asp=text/html which is MUCH more clear.  You can use multiple
definitions, separed by ",", or use multiple options.  Therefore, these
two lines are identical:

<pre>
--assume asp=text/html --assume php3=text/html --assume cgi=image/gif
--assume asp=text/html,php3=text/html,cgi=image/gif
</pre>

<p align=justify> The MIME type is the standard well known "MIME" type. 
Here are the most important ones:
<pre>
text/html       Html files, parsed by HTTrack
image/gif       GIF files
image/jpeg      Jpeg files
image/png       PNG files
</pre>

<p align=justify> There is also a collection of "non standard" MIME types. Example:

<pre>
application/x-foo       Files with "foo" type
</pre>

<p align=justify> Therefore, you can give to all files terminated by
".mp3" the MIME type: application/x-mp3

<p align=justify> This allow you to rename files on a mirror.  If you
KNOW that all "dat" files are in fact "zip" files ren amed into "dat",
you can tell httrack:

<pre>
--assume dat=application/x-zip
</pre>

<p align=justify> You can also "name" a file type, with its original
MIME type, if this type is not known by HTTrack.  This will avoid a test
when the link will be reached:

<pre>
--assume foo=application/foobar
</pre>

<p align=justify> In this case, HTTrack won't check the type, because it
has learned that "foo" is a known type, or MIME type
"application/foobar".  Therefore, it will let untouched the "foo" type. 

<p align=justify> A last remark, you can use complex definitions like:

<pre>
--assume asp=text/html,php3=text/html,cgi=image/gif,dat=application/x-zip,mpg=application/x-mp3,application/foobar
</pre>

<p align=justify> ..and save it on your .httrackrc file:

<pre>
set assume asp=text/html,php3=text/html,cgi=image/gif,dat=application/x-zip,mpg=application/x-mp3,application/foobar
</pre>

<hr>
<h3>Browser Options</h3>

<p align=justify> Browsers commonly leave footprints in web servers - as
web servers leave footprints in the browser.

<pre><b><i>
Browser ID:
  F  user-agent field (-F "user-agent name")
 %F  footer string in Html code (-%F "Mirrored [from host %s [file %s [at %s]]]"
 %l  preffered language (-%l "fr, en, jp, *" (--language <param>)
</i></b></pre>

<p align=justify> The user-agent field is used by browsers to determine
what kind of browser you are using as well as other information - such
as your system type and operating system version.  The 'User Agent'
field can be set to indicate whatever is desired to the server.  In this
case, we are claiming to be a netscape browser (version 1.0) running a
non-exitent Solaris operating system version on a Sun Sparcstation.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -F "Mozilla 1.0, Sparc, Solaris 23.54.34"
</i></b></pre>

<p align=justify> On the other side, we may wish to mark each page
collected with footer information so that we can see from the page where
it was collected from, when, and under what name it was stored. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%F "Mirrored [from host %s [file %s [at %s]]]"
</i></b></pre>

<p align=justify> This makes a modified copy of the file that may be
useful in future identification.  While it is not 'pure' in some senses,
it may (or may not) be considered siilar to a camera that adds time and
date stamps from a legal perspective. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%l "fr, en, jp, *"
</i></b></pre>

<p align=justify> "I prefer to have pages with french language, then
english, then japanese, then any other language"

<hr>
<h3>Log, Cache, and Index Options</h3>

<p align=justify> A lot of options are available for log files, indexing
of sites, and cached results:

<pre><b><i>
Log, index, cache
  C  create/use a cache for updates and retries (C0 no cache,C1 cache is prioritary,* C2 test update before)
  k  store all files in cache (not useful if files on disk)
 %n  do not re-download locally erased files
  Q  log quiet mode (no log)
  q  quiet mode (no questions)
  z  extra infos log
  Z  debug log
  v  verbose screen mode
  %v display on screen filenames downloaded (in realtime) (--display)
  f  log file mode
  f2 one single log file (--single-log)
  I  *make an index (I0 don't make)
  %I make an searchable index for this mirror (* %I0 don't make) (--search-index)

</i></b></pre>

<p align=justify> A cache memory area is used for updates and retries to
make the process far more efficient than it would otherwise be.  You can
choose to (0) go without a cache, (1) do not check remotly if the file
has been updated or not, just load the cache content, or (2) see what
works best and use it (the default).  Here is the no cache example. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -C0
</i></b></pre>

<p align=justify> The cache can be used to store all files - if desired
- but if files are being stored on disk anyway (the normal process for a
mirroring operation), this is not helpful.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -k
</i></b></pre>

<p align=justify> In some cases, a file from a mirror site is erased
locally.  For example, if a file contains inappropriate content, it may
be erased from the mirror site but remain on the remote site.  This
option allows you to leave deleted files permanently deleted when you
do a site update.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -update '%n'
</i></b></pre>

<p align=justify> If no log is desired, the following option should be
added. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -Q
</i></b></pre>

<p align=justify> If no questions should be asked of the user (in a mode
that would otherwise ask questions), the following option should be
added. 

<pre><b><i>
</i></b></pre>
httrack http://www.shoesizes.com -O /tmp/shoesizes -q

<p align=justify> By adding these options, you get (-z) extra log
information or (-Z) debugging information, and (-v) verbose screen
output.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -z -Z -v
</i></b></pre>

<p align=justify> Multiple log files can be created, but by default,
this option is used to put all logs into a single log file. 

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -f2
</i></b></pre>

<p align=justify> Finally, an index is normally made of the sites
mirrored (a pointer to the first page found from each specified URL) in
an index.html file in the project directory.  This can be prevented
through the use of this option:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -I0
</i></b></pre>


<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes %v
</i></b></pre>

<p align=justify> Animated information when using consol-based version,
example:
<pre>
17/95: localhost/manual/handler.html (6387 bytes) - OK
</pre>

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes f2
</i></b></pre>

<p align=justify> Do not split error and information log (hts-log.txt
and hts-err.txt) - use only one file (hts-log.txt)

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -%I linux.localdomain
</i></b></pre>

<p align=justify> Still in testing, this option asks the engine to
generate an index.txt, useable by third-party programs or scripts, to
index all words contained in html files. The above example will produce
index.txt:

<pre>
..
abridged
        1 linux/manual/misc/API.html
        =1
        (0)
absence
        3 linux/manual/mod/core.html
        2 linux/manual/mod/mod_imap.html
        1 linux/manual/misc/nopgp.html
        1 linux/manual/mod/mod_proxy.html
        1 linux/manual/new_features_1_3.html
        =8
        (0)
absolute
        3 linux/manual/mod/mod_auth_digest.html
        1 linux/manual/mod/mod_so.html
        =4
        (0)
..
</pre>

<hr>
<h3>Expert User Options</h3>

<p align=justify> For expert users, the following options provide further
options.

<pre><b><i>
Expert options:
  pN priority mode: (* p3)
      0 just scan, don't save anything (for checking links)
      1 save only html files
      2 save only non html files
     *3 save all files
      7 get html files before, then treat other files
  S   stay on the same directory
  D  *can only go down into subdirs
  U   can only go to upper directories
  B   can both go up&down into the directory structure
  a  *stay on the same address
  d   stay on the same principal domain
  l   stay on the same location (.com, etc.)
  e   go everywhere on the web
 %H  debug HTTP headers in logfile
</i></b></pre>

<p align=justify> One interesting application allows the mirror utility
to check for valid and invalid links on a site.  This is commonly used
in site tests to look for missing pages or other html errors.  I often
run such programs against my web sites to verify that nothing is missing.

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -p0
</i></b></pre>

<p align=justify> To check for valid links outside of a site, the '-t'
option can be used:

<pre><b><i>
httrack http://www.shoesizes.com -O /tmp/shoesizes -t
</i></b></pre>

<p align=justify> These options can be combined, for example, to provide
a service that checks sites for validity of links and reports back a
list of missing files and statistics.

<p align=justify> Other options allow the retention of select files -
for example - (1) only html files, (2) only non-html files, (3) all
files, and (7) get all html files first, then get other files.  This
last option provides a fast way to get the web pointers so that, for
example, a time limited collection process will tend to get the most
important content first. 

<p align=justify> In many cases, we only want the files froma given
directory.  In this case, we specify this option:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -S
</i></b></pre>

<p align=justify> This option allows the mirror to go only into
subdirectories of the initial directory on the remote host.  You might
want to combine it with the <b><i> -n </i></b> option to get all
non-html files linked from the pages you find. 

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -D -n
</i></b></pre>

<p align=justify> If you only want to work your way up the directory
structure from the specified URL (don't ask me why you might want to do
this), the following command line is for you:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -U
</i></b></pre>

<p align=justify> If you want to go both up and down the directory
structure (i.e., anywhere on on this site that the requested page leads
you to), this option will be best:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -B
</i></b></pre>

<p align=justify> The default is to remain on the same IP address - or
host name.  This option specifes this explicitly:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -a
</i></b></pre>

<p align=justify> If you want to restrict yourself only to the same
principal domain (e.g., include sites liks ftp.shoesizes.com), you would
use this option. 

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -d
</i></b></pre>

<p align=justify> To restrict yourself to the same major portion of the
Internet (e.g., .com, .net, .edu, etc.) try this option:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -l
</i></b></pre>

<p align=justify> Finally, if you want to mirror the whole Internet - at
least every place on the internet that is ever led to - either directly
or indirectly - from the starting point, use this one...  Please note
that this will almost always run you out of resources unless you use
other options - like limiting the depth of search.

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -e
</i></b></pre>

<p align=justify> Last but not least, you can include debugging
informaiton on all headers from a collection process by using this
option:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -'%H'
</i></b></pre>

<p align=justify> The options S, D, U, B, a, d, l, and e can be replaces
with filter options approximately as follows:

<pre><b><i>
S     -www.foo.com/* +www.foo.com/bar/*[file]
D     (default)
U     +www.foo.com/bar/* -www.foo.com/*[name]/*
B     +www.foo.com/bar/*
a     (default)
d     +*[name].foo.com/*
l     +*[name].com/*
e     +* (this is crazy unless a depth limit is used!)
</i></b></pre>

<hr>
<h3>Guru Options - DO NOT USE!!!</h3>

<p align=justify> This is a new section, for all "not very well
documented options".  You can use them, in fact, do not believe what is
written above!

<pre>
 #0  Filter test (-#0 '*.gif' 'www.bar.com/foo.gif')
</pre>

<p align=justify>  To test the filter system. Example:

<pre>
$ httrack -#0 'www.*.com/*foo*bar.gif' 'www.mysite.com/test/foo4bar.gif'
www.mysite.com/test/foo4bar.gif does match www.*.com/*foo*bar.gif
</pre>

<pre>
 #f  Always flush log files
</pre>

<p align=justify> Useful if you want the hts-log.txt file to be flushed
regularly (not buffered)

<pre>
 #FN Maximum number of filters
</pre>

<p align=justify> Use if if you want to use more than the maximum
default number of filters, that is, 500 filters: -#F2000 for 2,000 filters

<pre>
 #h  Version info
</pre>

<p align=justify> Informations on the version number

<pre>
 #K  Scan stdin (debug)
</pre>

<p align=justify> Not useful (debug only)

<pre>
 #L  Maximum number of links (-#L1000000)
</pre>

<p align=justify> Use if if you want to use more than the maximum
default number of links, that is, 100,000 links: -#L2000000 for 2,000,000 links

<pre>
 #p  Display ugly progress information
</pre>

<p align=justify>  Self-explanatory :) I will have to improve this one

<pre>
 #P  Catch URL
</pre>

<p align=justify> "Catch URL" feature, allows to setup a temporary proxy
to capture complex URLs, often linked with POST action (when using form
based authentication)

<pre>
 #R  Old FTP routines (debug)
</pre>

<p align=justify> Debug..

<pre>
 #T  Generate transfer ops. log every minutes
</pre>

<p align=justify> Generate a log file with transfer statistics

<pre>
 #u  Wait time
</pre>

<p align=justify> "On hold" option, in seconds

<pre>
 #Z  Generate transfer rate statictics every minutes
</pre>

<p align=justify> Generate a log file with transfer statistics

<pre>
 #!  Execute a shell command (-#! "echo hello")
</pre>

<p align=justify> Debug..

<hr>
<h3>Command-line Specific Options</h3>

<pre><b><i>
Command-line specific options:
  V execute system command after each files ($0 is the filename: -V "rm \$0") (--userdef-cmd <param>)
</i></b></pre>

<p align=justify> This option is very nice for a wide array of actions
that might be based on file details.  For example, a simple log of all
files collected could be generated by using:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes -V "/bin/echo \$0"
</i></b></pre>

<pre>
 %U run the engine with another id when called as root (-%U smith) (--user <param>)
</pre>

<p align=justify> Change the UID of the owner when running as r00t

<pre>
  Details: User-defined option N
    %[param] param variable in query string
</pre>

<p align=justify>
This new option is important: you can include query-string content when forming the destination filename!

<pre>
Example: you are mirroring a huge website, with many pages named as:
www.foo.com/catalog.php3?page=engineering
www.foo.com/catalog.php3?page=biology
www.foo.com/catalog.php3?page=computing
..
</pre>

<p align=justify> Then you can use the -N option:

<pre>
httrack www.foo.com -N "%h%p/%n%[page].%t"
</pre>

<p align=justify> If found, the "page" parameter will be included after
the filename, and the URLs above will be saved as:

<pre>
/home/mywebsites/foo/www.foo.com/catalogengineering.php3
/home/mywebsites/foo/www.foo.com/catalogbiology.php3
/home/mywebsites/foo/www.foo.com/catalogcomputing.php3
...
</pre>

<hr>
<h3>Shortcuts</h3>

<p align=justify> These options provide shortcust to combinations
of other options that are commonly used.

<pre><b><i>
Shortcuts:
--mirror      <URLs> *make a mirror of site(s) (default)
--get         <URLs>  get the files indicated, do not seek other URLs (-qg)
--list   <text file>  add all URL located in this text file (-%L)
--mirrorlinks <URLs>  mirror all links in 1st level pages (-Y)
--testlinks   <URLs>  test links in pages (-r1p0C0I0t)
--spider      <URLs>  spider site(s), to test links: reports Errors & Warnings (-p0C0I0t)
--testsite    <URLs>  identical to --spider
--skeleton    <URLs>  make a mirror, but gets only html files (-p1)
--update              update a mirror, without confirmation (-iC2)
--continue            continue a mirror, without confirmation (-iC1)
--catchurl            create a temporary proxy to capture an URL or a form post URL
--clean               erase cache & log files
--http10              force http/1.0 requests (-%h)
</i></b></pre>

<p align=justify> Mirror is the default behavior.  It is detailed
earlier.

<p align=justify> get simply gets the files specified on the command
line.

<p align=justify> The list option is useful for including a list of
sites to collect data from.

<p align=justify> The mirrorlinks option is ideal for using the result
of a previous search (like a list of pages found in a web search or
somebody's URL collection) to guide the collection of data.  With
additional options (such as depth 1) it can be used to collect all of
the pages linked to a given page without going further.  Here is an example:

<pre><b><i>
httrack http://www.shoesizes.com/bob/ -O /tmp/shoesizes --mirrorlinks -e -r1
</i></b></pre>

<p align=justify> Testing links in pages is useful for automating the
verification that a link from a file is not pointing to a non-existent
page.

<p align=justify> The spider option does a site test automatically and
returns errors for broken links. 

<p align=justify> The skeleton option makes a mirror of html files only.

<p align=justify> The update option updates a site to match a remote
mirror. 

<p align=justify> The continue option continues a previously terminated
mirroring activity. This is useful for all sorts of mirror failures.

<p align=justify> The catchurl option is a small application designed to
catch difficult pages, like sites protected via formulas.  You can see
at http://httrack.free.fr/HelpHtml/addurl.html a Windows description of
this application.  The purpose is to create a temporary proxy, that will
catch the user request to a page, and then store this request to
continue the mirror. For example,

<ul><pre>
1. browse www.foo.com/bar/ until you have a page with a form
2. fill this form to enter the site BUT do not click "submit"
3. start the --catchurl application
4. change your browser proxy settings according to the --catchurl application
5. click on "submit" on your browser
6. HTTrack has now captured this click and has stored it
7. restore your proxy settings
8. (click back in your browser)
</pre></ul>

<p align=justify> The clean option erases cache and log files.

<p align=justify> The http10 option forces http/1.0 requests (the same
as -%h). 

<hr>

<h2> Filters </h2>

<p align=justify> Filters are normally placed at the end of the command
line, but can be intermixed with other command line options if desired,
except that if they are placed between (for example) the '-O' and the
pathname, your results may be different than you might otherwise
predict.  There are two sorts of filters, filters that indicate what to
include (+) and filters that indicate what to exclude (-). 

<p align=justify> Starting with the initially specified URLs, the
default operation mode is to mirror starting from these URLs downward
into the directory structure of the host (i.e.  if one of your starting
pagees was www.all.net/test/a.html, all links starting with www.all.net/test/
will be collected but links in www.all.net/anything-else will not be
collected, because they are in a higher directory strcuture level.  This
prevents HTTrack from mirroring the whole site.  If you may want to
download files are in other parts of the site or pf particular types -
or to not download files in a particular part of the site or of a
particular type, you can use filters to specify more precisely what to
collect and what not to collect. 

<p align=justify> The syntax for filters is similar to Unix regular
expressions.  A simple filter can be made by using characters from the
URL with '*' as a wildcard for 0 or more characters - with the last
filter rule having the highest precendence.  An initial '+' indicates
URLs to include and an initial '-' indicated URLs to not include.  For
example:

<pre><b><i>
'-*' '+*jpg'
</i></b></pre>

<p align=justify> would only get files ending in the 'jpg' extension,
while:

<pre><b><i>
'-*jpg'
</i></b></pre>

<p align=justify> would not get any files ending in the jpg extension. 
You can add more filter lines to restrict or expand the scope as
desired.  The last rule is checked first, and so on - so that the rules
are in reverse priority order.  Here's an example:

    <table BORDER="1" CELLPADDING="2">
    <tr><td>
    <b>+*.gif -image*.gif</b>
    </td><td>
    Will accept all gif files BUT image1.gif,imageblue.gif,imagery.gif and so on
    </tr>
    <tr><td>
    <b>-image*.gif +*.gif</b>
    </td><td>
    Will accept all gif files, because the second pattern is prioritary (because it is defined AFTER the first one)
    </tr>
    </table>

<p align="JUSTIFY"> The full syntax for filters follows:

    <table BORDER="1" CELLPADDING="2">
      <tr>
        <td><b>*</b></td>
        <td>any characters (the most commonly used)</td>
      </tr>
      <tr>
        <td><b>*[file] or *[name]</b></td>
        <td>any filename or name, e.g. not /,? and ; characters</td>
      </tr>
      <tr>
        <td><b>*[path]</b></td>
        <td>any path (and filename), e.g. not ? and ; characters</td>
      </tr>
      <tr>
        <td><b>*[a,z,e,r,t,y]</b></td>
        <td>any letters among a,z,e,r,t,y</td>
      </tr>
      <tr>
        <td><b>*[a-z]</b></td>
        <td>any letters</td>
      </tr>
      <tr>
        <td><b>*[0-9,a,z,e,r,t,y]</b></td>
        <td>any characters among 0..9 and a,z,e,r,t,y</td>
      </tr>
      <tr>
        <td><b>*[]</b></td>
        <td>no characters must be present after</a></td>
      </tr>
	<tr>
		<td> <b> <filter>*[&lt NN]</b></td>
		<td> size less than NN Kbytes</td>
	</tr>
	<tr>
		<td> <b> <filter>*[&gt PP]</b></td>
		<td> size more than PP Kbytes</td>
	</tr>
	<tr>
		<td> <b> <filter>*[&lt NN &gt PP]</b></td>
		<td> size less than NN Kbytes and more than PP Kbytes</td>
	</tr>
    </table>


<p align="justify"> Here are some examples of filters: (that can be
generated automatically using the interface)

    <table BORDER="1" CELLPADDING="2">
      <tr>
        <td><b>-www.all.net* </b></td>
        <td>This will refuse/accept this web site (all links located in it will be rejected)</td>
      </tr>
      <tr>
        <td><b>+*.com/*</b></td>
        <td>This will accept all links that contains .com in them</td>
      </tr>
      <tr>
        <td><b>-*cgi-bin* </b></td>
        <td>This will refuse all links that contains cgi-bin in them</td>
      </tr>
      <tr>
        <td><b>+*.com/*[path].zip </b></td>
        <td>This will accept all zip files in .com addresses</td>
      </tr>
      <tr>
        <td><b>-*someweb*/*.tar*</b></td>
        <td>This will refuse all tar (or tar.gz etc.) files in hosts containing someweb</td>
      </tr>
      <tr>
        <td><b>+*/*somepage*</b></td>
        <td>This will accept all links containing somepage (but not in the address)</td>
      </tr>
      <tr>
        <td><b>-*.html</b></td>
        <td>This will refuse all html files from anywhere in the world. </td>
      </tr>
      <tr>
        <td><b>+*.html*[]</b></td>
        <td>Accept <b>*.html</b>, but the link must not have any supplemental characters
        at the end<br>(e.g., links with parameters, like <b>www.all.net/index.html?page=10</b>
	will not match this filter)</td>
      </tr>
	<tr>
		<td> <b> -*.gif*[&gt 5] -*.zip +*.zip*[&lt 10]</b></td>
		<td> refuse all gif files smaller than 5KB, exlude all zip files, EXCEPT zip files smaller than 10KB </td>
	</tr>
    </table>

<hr>

<h2> User Authentication Protocols </h2>

<p align=justify> Smoe servers require user ID and password information
in order to gain access.  In this example, the user ID smith with
password foobar is accessing www.all.net/private/index.html

<pre><b><i>
httrack smith:foobar@www.all.net/private/index.html
</i></b></pre>

<p align=justify> For more advanced forms of authentication, such as
those involving forms and cookies of various sorts, an emerging
capability is being provided through th URL capture features
(--catchurl).  This feature don't work all of the time.

<hr>

<h2> .httrackrc </h2>

<p align=justify> A file called '.httrackrc' can be placed in the
current directory, or if not found there, in the home directory, to
include command line options.  These options are included whenever
httrack is run. A sample .httrack follows:

<ul><pre><b><i>
 set sockets 8
 set retries 4
 index on
 set useragent "Mozilla [en] (foo)"
 set proxy proxy:8080
</i></b></pre></ul>

<p align=justify> But the syntax is not strict, you can use any of
these:

<ul><pre><b><i>
 set sockets 8
 set sockets=8
 sockets=8
 sockets 8
</i></b></pre></ul>


<p align=justify> .httrackrc is sought in the following sequence with
the first occurence used:

<ul>
<li> in the dirctory indicated by -O option (.httrackrc)
<li> in the current directory (.httrackrc)
<li> in the user's home directory (.httrackrc)
<li> in /etc/httrack.conf (named httrack.conf to be "standard")
</ul>

<p align=justify> An example .httrackrc looks like:

<ul><pre><b><i>
set sockets=8
set index on
retries=2
allow *.gif
deny ad.doubleclick.net/*
</i></b></pre></ul>

<p align=justify> Each line is composed of an option name and a
parameter.  The "set" token can be used, but is not mandatory (it is
ignored, in fact).  The "=" is also optionnal, and is replaced by a
space internally.  The "on" and "off" are the same as "1" and "0"
respectively.  Therefore, the example .httrackrc above is equivalent to:

<ul><pre><b><i>
sockets=8
index=1
retries=2
allow=*.gif
deny=ad.doubleclick.net/*
</i></b></pre></ul>

<p align=justify> Because the "=" seems to (wrongly) imply a variable
assignment (the option can be defined more than once to define more than
one filter) the following .httrackrc:

<ul><pre><b><i>
allow *.gif
allow *.jpg
</i></b></pre></ul>

<p align=justify> looks better for a human than:

<ul><pre><b><i>
allow=*.gif
allow=*.jpg
</i></b></pre></ul>

<p align=justify> Here's a example run with the example .httrackrc file:

<ul><pre><b><i>
$ httrack ghost
$ cat hts-cache/doit.log
-c8 -C1 -R2 +*.gif -ad.doubleclick.net/* ghost
</i></b></pre></ul>

<p align=justify> The "-c8 -C1 -R2 +*.gif -ad.doubleclick.net/*" was
added by the .httrackrc

<hr>

<h2> Release Notes </h2>

<p align=justify> Some things change between releases.  Here are some
recent changes in httrack that may affect some of these options:

<p align=justify> Options S,D,U,B, and a,d,l,e are default behaviours of
HTTrack.  they were the only options in old versions (1.0).  With the
introduction of filters, their roles are now limited, because filters
can override them.

<p align=justify> Note for the -N option: "%h%p/%n%q.%t" will be now be
used if possible.  In normal cases, when a file does not have any
parameters (www.foo.com/bar.gif) the %q option does not add anything, so
there are no differences in file names.  But when parameters are present
(for example, www.foo.com/bar.cgi?FileCollection=133.gif), the
additionnal query string (in this case, FileCollection=133.gif) will be
"hashed" and added to the filename.  For example:

<pre><i><b>'www.all.net/bar.cgi?FileCollection=133.gif'</b></i></pre>
<p align=justify> will be named
<pre><i><b>'/tmp/mysite/bar4F2E.gif'</b></i></pre>

<p align=justify> The additionnal 4 letters/digits are VERY useful in
cases where there are a substantial number of identical files:

<pre><i><b>
www.all.net/bar.cgi?FileCollection=133.gif
www.all.net/bar.cgi?FileCollection=rose.gif
www.all.net/bar.cgi?FileCollection=plant4.gif
www.all.net/bar.cgi?FileCollection=silver.gif
and so on...
</b></i></pre>

<p align=justify> In these cases, there is a small probability of a hash
collision forlarge numbers of files.

<hr>

<h2> Some More Examples </h2>

<p align=justify> Here are some examples of special purpose httrack
command lines that might be useful for your situation.

<p align=justify> This is a 'forensic' dump of a web site - intended to
collect all URLs reachable from the initial point and at that particular
site.  It is intended to make no changes whatsoever to the image.  It
also prints out an MD5 checksum of each file imaged so that the image
can be verified later to detect and changes after imaging.  It uses 5
retries to be more certain than normal of getting the files, never
abandons its efforts, keeps original links, does not generate error
files, ignores site restrictions for robots, logs as much as it can,
stays in the principal domain, places debugging headers in the log file,

<pre><b><i>
httrack "www.website.com/" -O "/tmp/www.website.com" -R5H0Ko0s0zZd %H -V "md5 \$0" "+*.website.com/*" 
</i></b></pre>

<p align=justify> Here's an example of a site where I pulled a set of
data related to some subject.  In this case, I only wanted the
relevant subdirectory, all external links were to remain the same, a
verbose listing of URLs was to be printed, and I wanted files near (n)
and below (D) the original directory.  Five retries just makes sure I
don't miss anything.

<pre><b><i>
httrack "http://www.somesite.com/~library/thing/thingmain.htm" -O /tmp/thing -R5s0zZvDn
</i></b></pre>

<p align=justify> This listing is, of course, rather verbose.  To reduce the noise,
you might want to do something more like this:

<pre><b><i>
httrack "http://www.somesite.com/~library/thing/thingmain.htm" -O /tmp/thing -R5s0zvDn
</i></b></pre>

<p align=justify> A still quieter version - without any debugging
information but with a list of files loaded looks like this:

<pre><b><i>
httrack "http://www.somesite.com/~library/thing/thingmain.htm" -O /tmp/thing -R5s0vDn
</i></b></pre>

<p align=justify> For the strong silent type, this might be still better:

<pre><b><i>
httrack "http://www.somesite.com/~library/thing/thingmain.htm" -O /tmp/thing -R5s0qDn
</i></b></pre>

<hr>

<h2>General questions:</h2>

<p align=justify><b>Q:  The install is not working on NT without administrator rights! </b>

<p align=justify> A: That's right.  You can, however, install WinHTTrack
on your own machine, and then copy your <b>WinHTTrack</b> folder from
your <b>Program Files</b> folder to another machine, in a temporary
directory (e.g.  <b>C:\temp\</b>)

<p align=justify><b>Q:  Where can I find French/other languages documentation? </b>

<p align=justify> A: Windows interface is available on several
languages, but not yet the documentation!

<p align=justify><b>Q:  Is HTTrack working on NT/2000? </b>

<p align=justify> A: Yes, it should

<p align=justify><b>Q:  What's the difference between HTTrack and WinHTTrack? </b>

<p align=justify> A: WinHTTrack is the Windows release of HTTrack (with
a graphic shell)

<p align=justify><b>Q: Is HTTrack Mac compatible? </b>

<p align=justify> A: No, because of a lack of time.  But sources are
available

<p align=justify><b>Q:  Can HTTrack be compiled on all Un*x? </b>

<p align=justify> A: It should.  The <b>Makefile</b> may be modified in
some cases, however

<p align=justify><b>Q: I use HTTrack for professional purpose.  What
about restrictions/license fee? </b>

<p align=justify> A: There is no restrictions using HTTrack for
professional purpose, except if you want to sell a product including
HTTrack components (parts of the source, or any other component).  See
the <b>license.txt</b> file for more informations

<p align=justify><b>Q: Is a DLL/library version available? </b>

<p align=justify> A: Not yet.  But, again, sources are available (see
<b>license.txt</b> for distribution infos)

<p align=justify><b>Q: Is there a X11/KDE shell available for Linux and
Un*x? </b>

<p align=justify> A: No.  Unfortunately, we do not have enough time for
that - if you want to help us, please write one!

<hr><h2> Troubleshooting:</h2>

<p align=justify><b>Q: Only the first page is caught.  What's wrong?</b>
</br> A: First, check the <b>hts-err.txt</b> error log file - this can
give you precious informations. 

<p align=justify> The problem can be a website that redirects you to
another site (for example, <b>www.all.net</b> to <b>public.www.all.net</b>) : in
this case, use filters to accept this site

<p align=justify> This can be, also, a problem in the HTTrack options
(link depth too low, for example)

<p align=justify><b>Q: With WinHTTrack, sometimes the minimize in system
tray causes a crash!</b> </b>

<p align=justify> A: This bug sometimes appears in the shell on some
systems.  If you encounter this problem, avoid minimizing the window!

<p align=justify><b>Q: URLs with https:// are not working!</b> </b></br>
A: HTTrack does not support https (secure socket layer protocol), only
http protocol

<p align=justify><b>Q: Files are created with strange names, like
'-1.html'!</b>

<p align=justify> A: Check the build options (you may have selected
user-defined structure with wrong parameters!)

<p align=justify><b>Q: When capturing real audio links (.ra), I only get
a shortcut!</b>

<p align=justify> A: Yes.  The audio/video realtime streaming capture is
not yet supported

<p align=justify><b>Q:  Using user:password@address is not working!</b>

<p align=justify> A: Again, first check the <b>hts-err.txt</b> error log
file - this can give you precious informations

<p align=justify> The site may have a different authentication scheme
(form based authentication, for example)

<p align=justify><b>Q: When I use HTTrack, nothing is mirrored (no
files) What's happening? </b>

<p align=justify> A: First, be sure that the URL typed is correct. 
Then, check if you need to use a proxy server (see proxy options in
WinHTTrack or the <b>-P proxy:port</b> option in the command line
program).  The site you want to mirror may only accept certain browsers. 
You can change your &quot;browser identity&quot; with the Browser ID
option in the OPTION box.  Finally, you can have a look at the
hts-err.txt (and hts-log.txt) file to see what happened. 

<p align=justify><b>Q: There are missing files! What's happening? </b>

<p align=justify> A: You may want to capture files that are in a
different folder, or in another web site.  In this case, HTTrack does not
capture them automatically, you have to ask it to do.  For that, use the
filters. 

<p align=justify> Example: You are downloading
<b>http://www.all.net/foo/</b> and can not get .jpg images located in
<b>http://www.all.net/bar/</b> (for example, http://www.all.net/bar/blue.jpg)

<p align=justify> Then, add the filter rule <b>+www.all.net/bar/*.jpg</b> to
accept all .jpg files from this location

<p align=justify> You can, also, accept all files from the /bar folder
with <b>+www.all.net/bar/*</b>, or only html files with
<b>+www.all.net/bar/*.html</b> and so on.. 
 
<p align=justify><b>Q: I'm downloading too many files! What can I do?
</b>

<p align=justify> A: This is often the case when you use too large
filters, for example <b>+*.html</b>, which asks the engine to catch all
.html pages (even ones on other sites!).  In this case, try to use more
specific filters, like <b>+www.all.net/specificfolder/*.html</b>

<p align=justify> If you still have too many files, use filters to avoid
somes files.  For example, if you have too many files from www.all.net/big/,
use <b>-www.all.net/big/*</b> to avoid all files from this folder. 
 
<p align=justify><b>Q: File types are sometimes changed! Why? </b>

<p align=justify> A: By default, HTTrack tries to know the type of
remote files.  This is useful when links like
<b>http://www.all.net/foo.cgi?id=1</b> can be either HTML pages, images or
anything else.  Locally, foo.cgi will not be recognized as an html page,
or as an image, by your browser.  HTTrack has to rename the file as
foo.html or foo.gif so that it can be viewed. 

<p align=justify> Sometimes, however, some data files are seen by the
remote server as html files, or images : in this case HTTrack is being
fooled..  and rename the file.  You can avoid this by disabling the type
checking in the option panel. 

<p align=justify><b>Q: I can not access to several pages (access
forbidden, or redirect to another location), but I can with my browser,
what's going on?</b>

<p align=justify> A: You may need cookies! Cookies are specific datas
(for example, your username or password) that are sent to your browser
once you have logged in certain sites so that you only have to log-in
once.  For example, after having entered your username in a website, you
can view pages and articles, and the next time you will go to this site,
you will not have to re-enter your username/password. 

<p align=justify> To "merge" your personnal cookies to an HTTrack
project, just copy the cookies.txt file from your Netscape folder (or
the cookies located into the Temporary Internet Files folder for IE)
into your project folder (or even the HTTrack folder)

</b><p align=justify><b>Q: Some pages can't be seen, or are displayed
with errors! </b>

<p align=justify> A: Some pages may include javascript or java files
that are not recognized.  For example, generated filenames.  There may
be transfer problems, too (broken pipe, etc.).  But most mirrors do
work.  We still are working to improve the mirror quality of HTTrack. 

<p align=justify><b>Q: Some Java applets do not work properly! </b>

<p align=justify> A: Java applets may not work in some cases, for
example if HTTrack failed to detect all included classes or files called
within the class file.  Sometimes, Java applets need to be online,
because remote files are directly caught.  Finally, the site structure
can be incompatible with the class (always try to keep the original site
structure when you want to get Java classes)

<p align=justify> If there is no way to make some classes work properly,
you can exclude them with the filters.  They will be available, but only
online. 
 
<p align=justify><b>Q: HTTrack is being idle for a long time without
transfering.  What's happening? </b>

<p align=justify> A: Maybe you try to reach some very slow sites.  Try a
lower TimeOut value (see options, or <b>-Txx</b> option in the command
line program).  Note that you will abandon the entire site (except if
the option is unchecked) if a timeout happen You can, with the Shell
version, skip some slow files, too. 

<p align=justify><b>Q: I want to update a site, but it's taking too much
time! What's happening?</b>

<p align=justify> A: First, HTTrack always tries to minimize the
download flow by interrogating the server about the file changes.  But,
because HTTrack has to rescan all files from the begining to rebuild the
local site structure, it can takes some time.  Besides, some servers are
not very smart and always consider that they get newer files, forcing
HTTrack to reload them, even if no changes have been made!

<p align=justify><b>Q: I am behind a firewall.  What can I do? </b>

<p align=justify> A: You need to use a proxy, too.  Ask your
administrator to know the proxy server's name/port.  Then, use the proxy
field in HTTrack or use the <b>-P proxy:port</b> option in the command
line program. 

<p align=justify><b>Q: HTTrack has crashed during a mirror, what's
happening? </b>

<p align=justify> A: We are trying to avoid bugs and problems so that
the program can be as reliable as possible.  But we can not be
infallible.  If you occurs a bug, please check if you have the latest
release of HTTrack, and send us an email with a detailed description of
your problem (OS type, addresses concerned, crash description, and
everything you deem to be necessary).  This may help the other users
too. 

<p align=justify><b>Q: I want to update a mirrored project, but HTTrack
is retransfering all pages.  What's going on? </b>

<p align=justify> A: First, HTTrack always rescan all local pages to
reconstitute the website structure, and it can take some time.  Then, it
asks the server if the files that are stored locally are up-to-date.  On
most sites, pages are not updated frequently, and the update process is
fast.  But some sites have dynamically-generated pages that are
considered as "newer" than the local ones..  even if there are
identical! Unfortunately, there is no possibility to avoid this problem,
which is strongly linked with the server abilities. 

<p align=justify> <hr><h2> Questions concerning a mirror: </h2>

<p align=justify> <p align=justify><b>Q: I want to mirror a Web site,
but there are some files outside the domain, too.  How to retrieve them?
</b>

<p align=justify> A: If you just want to retrieve files that can be
reached through links, just activate the 'get file near links' option. 
But if you want to retrieve html pages too, you can both use wildcards
or explicit addresses ; e.g.  add <b>www.all.net/*</b> to accept all
files and pages from www.all.net. 

<p align=justify><b>Q: I have forgotten some URLs of files during a long
mirror..  Should I redo all? </b>

<p align=justify> A: No, if you have kept the 'cache' files (in
hts-cache), cached files will not be retransfered. 

<p align=justify><b>Q: I just want to retrieve all ZIP files or other
files in a web site/in a page.  How do I do it? </b>

<p align=justify> A: You can use different methods.  You can use the
'get files near a link' option if files are in a foreign domain.  You
can use, too, a filter adress: adding <b>+*.zip</b> in the URL list (or
in the filter list) will accept all ZIP files, even if these files are
outside the address. 

<p align=justify> Example : <b>httrack www.all.net/someaddress.html
+*.zip</b> will allow you to retrieve all zip files that are linked on
the site. 

<p align=justify><b>Q: There are ZIP files in a page, but I don't want
to transfer them.  How do I do it? </b>

<p align=justify> A: Just filter them: add <b>-*.zip</b> in the filter
list. 

<p align=justify><b>Q: I don't want to load gif files..  but what may
happen if I watch the page? </b>

<p align=justify> A: If you have filtered gif files (<b>-*.gif</b>),
links to gif files will be rebuild so that your browser can find them on
the server. 

<p align=justify><b>Q: I get all types of files on a web site, but I
didn't select them on filters! </b>

<p align=justify> A: By default, HTTrack retrieves all types of files on
authorized links.  To avoid that, define filters like

<p align=justify><b><b>-* +&lt;website&gt;/*.html +&lt;website&gt;/*.htm
+&lt;website&gt;/ +*.&lt;type wanted&gt;</b></b>

<p align=justify> Example: <b>httrack www.all.net/index.html -*
+www.all.net/*.htm* +www.all.net/*.gif +www.all.net/*.jpg</b>

<p align=justify><b>Q: When I use filters, I get too many files! </b>

<p align=justify> A: You are using too large a filter, for example
<b>*.html</b> will get ALL html files identified.  If you want to get
all files on an address, use <b>www.&lt;address&gt;/*.html</b>.  There
are lots of possibilities using filters. 

<p align=justify> Example:<b>httrack www.all.net +*.www.all.net/*.htm*</b>

<p align=justify><b>Q: When I use filters, I can't access another
domain, but I have filtered it! </b>

<p align=justify> A: You may have done a mistake declaring filters, for
example <b>+www.all.net/* -*all* </b> will not work, because
-*all* has an upper priority (because it has been declared after
+www.all.net)

<p align=justify><b>Q: Must I add a&nbsp; '+' or '-' in the filter list
when I want to use filters? </b>

<p align=justify> A: YES.  '+' is for accepting links and '-' to avoid
them.  If you forget it, HTTrack will consider that you want to accept a
filter if there is a wild card in the syntax - e.g.  +&lt;filter&gt; if
identical to &lt;filter&gt; if &lt;filter&gt; contains a wild card (*)
(else it will be considered as a normal link to mirror)

<p align=justify><b>Q: I want to find file(s) in a web-site.  How do I do it?
</b>

<p align=justify> A: You can use the filters: forbid all files (add a
<b>-*</b> in the filter list) and accept only html files and the file(s)
you want to retrieve (BUT do not forget to add
<b>+&lt;website&gt;*.html</b> in the filter list, or pages will not be
scanned! Add the name of files you want with a <b>*/</b> before ; i.e. 
if you want to retrieve file.zip, add <b>*/file.zip</b>)

<p align=justify> Example:<b>httrack www.all.net +www.all.net/*.htm*
+thefileiwant.zip</b>

<p align=justify><b>Q: I want to download ftp files/ftp site.  How to
do? </b>

<p align=justify> A: First, HTTrack is not the best tool to download
many ftp files.  Its ftp engine is basic (even if reget are possible)
and if your purpose is to download a complete site, use a specific
client. 

<p align=justify> You can download ftp files just by typing the URL,
such as <b>ftp://ftp.www.all.net/pub/files/file010.zip</b> and list ftp
directories like <b>ftp://ftp.www.all.net/pub/files/</b> . 

<p align=justify> Note: For the filters, use something like
<b>+ftp://ftp.www.all.net/*</b>

<p align=justify><b>Q: How can I retrieve .asp or .cgi sources instead
of .html result? </b>

<p align=justify> A: You can't! For security reasons, web servers do not
allow that. 

<p align=justify><b>Q: How can I remove these annoying <b>&lt;!--
Mirrored from...  --&gt;</b> from html files? </b>

<p align=justify> A: Use the footer option (-&F, or see the WinHTTrack
options)

<p align=justify><b>Q: Do I have to select between ascii/binary transfer
mode? </b>

<p align=justify> A: No, http files are always transfered as binary
files.  Ftp files, too (even if ascii mode could be selected)

<p align=justify><b>Q: Can HTTrack perform form-based authentication?
</b>

<p align=justify> A: Yes.  See the URL capture abilities (--catchurl for
command-line release, or in the WinHTTrack interface)

<p align=justify><b>Q: Can I redirect downloads to tar/zip archive? </b>

<p align=justify> A: Yes.  See the shell system command option (-V
option for command-line release)

<p align=justify><b>Q: Can I use username/password authentication on a
site? </b>

<p align=justify> A: Yes.  Use user:password@your_url (example:
<b>http://foo:bar@www.all.net/private/mybox.html</b>)

<p align=justify><b>Q: Can I use username/password authentication for a
proxy? </b>

<p align=justify> A: Yes.  Use user:password@your_proxy_name as your
proxy name (example: <b>smith:foo@proxy.mycorp.com</b>)

<p align=justify><b>Q: Can HTTrack generates HP-UX or ISO9660 compatible
files? </b>

<p align=justify> A: Yes.  See the build options (-N, or see the
WinHTTrack options)

<p align=justify><b>Q: If there any SOCKS support? </b>

<p align=justify> A: Not yet!

<p align=justify><b>Q: What's this hts-cache directory? Can I remove it?
</b>

<p align=justify> A: NO if you want to update the site, because this
directory is used by HTTrack for this purpose.  If you remove it,
options and URLs will not be available for updating the site

<p align=justify><b>Q: Can I start a mirror from my bookmarks? </b>

<p align=justify> A: Yes.  Drag&Drop your bookmark.html file to the
WinHTTrack window (or use file://filename for command-line release) and
select bookmark mirroring (mirror all links in pages, -Y) or bookmark
testing (--testlinks)

<p align=justify><b>Q: I am getting a "pipe broken" error and the mirror
stops, what should I do? </b>

<p align=justify> A: Chances are this is a result of downloading too
many pages at a time.  Remote servers may not allow or be able to handle
too many sessions, or your system may be unable to provide the necessary
resources.  Try redusing this number - for example using the -c2 options
for only 2 simultaneous sesions.

<!-- ==================== Start epilogue ==================== -->
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
</td>
</tr>
</table>

<table width="76%" border="0" align="center" valign="bottom" cellspacing="0" cellpadding="0">
	<tr>
	<td id="footer"><small>&copy; 2007 Xavier Roche & other contributors - Web Design: Leto Kauler.</small></td>
	</tr>
</table>

</body>

</html>