/
.wgetrc
78 lines (58 loc) · 2.08 KB
/
.wgetrc
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
#""""""""""""""""""""""""""""""""""""""
#" WGETRC file:
#"
#" Denis Zanin
#" https://github.com/deniszanin/dotfiles
#"
#""""""""""""""""""""""""""""""""""""""
# Use the server-provided last modification date, if available
timestamping = on
# Do not go up in the directory structure when downloading recursively
no_parent = on
# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!)
timeout = 30
# Retry a few times when a download fails, but don’t overdo it. (The default is 20!)
tries = 3
# Retry even when the connection was refused
retry_connrefused = on
# Use the last component of a redirection URL for the local file name
trust_server_names = on
# Follow FTP links from HTML documents by default
follow_ftp = on
# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one
adjust_extension = on
# Use UTF-8 as the default system encoding
# Disabled as it makes `wget` builds that don’t support this feature unusable.
# Does anyone know how to conditionally configure a wget setting?
# http://unix.stackexchange.com/q/34730/6040
local_encoding = UTF-8
# Force the default remote server encoding
remote_encoding = UTF-8
# Ignore `robots.txt` and `<meta name=robots content=nofollow>`
robots = off
# Print the HTTP and FTP server responses
server_response = on
# Referer
referer = /
# Headers
header = Accept-Language: en-us,en;q=0.5
header = Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
header = Connection: keep-alive
# Same user_agent as TBB
user_agent = Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0
# Save temp cookies
load-cookies=~/.tmpcached/wget_cookie
save-cookies=~/.tmpcached/wget_cookie
# Disallow server-caching
cache = off
dns-cache = off
# IPv4 only
inet4_only = on
prefer_family = IPv4
# Logfile
#logfile=~/.tmpcached/wget_logfile
# Verbose
verbose = on
# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = on