my $proxyServer = "";\r
# Hosts not to use a proxy for\r
my @hostsNoProxy = ("host1","host1.my.domain.name");\r
+# Make sure we don't download multi-megabyte files! We need only head section\r
+my $maxDocSizeBytes = 4096; # number is bytes\r
\r
############### DON'T EDIT BELOW HERE ###############\r
\r
print " If this file is an AWStats history file then urlaliasbuilder will use the\n";\r
print " SIDER section of this file as its input URL's list.\n";\r
print " -urlaliasfile=Output urlalias file to build\n";\r
- print " -overwrite\n";\r
- print " -secure\n";\r
+ print " -overwrite Overwrite output file if exists\n";\r
+ print " -secure Use https protocol\n";\r
print "\n";\r
print "Example: $PROG.$Extension -site=www.someotherhost.com\n";\r
print "\n";\r
- print "This is default configuration used if no option is used on command line:\n";\r
+ print "This is default configuration used when no option are provided on command line:\n";\r
print "Input urllist file: $fileToOpen (overwritten by -urllistfile option)\n";\r
print "Output urlalias file: $urlAliasFile (overwritten by -urlaliasfile option)\n";\r
print "\n"; \r
# avoid proxy for these hosts\r
$ua->no_proxy(@hostsNoProxy);\r
}\r
+# set maximum size of document to retrieve (in bytes)\r
+$ua->max_size($maxDocSizeBytes);\r
if(!($ua->is_protocol_supported('https')) && $useHTTPS) {\r
print "SSL is not supported on this machine.\n\n";\r
exit();\r