Go to the first, previous, next, last section, table of contents.


HTTP Options

`--http-user=user'
`--http-passwd=password'
Specify the username user and password password on an HTTP server. According to the type of the challenge, Wget will encode them using either the basic (insecure) or the digest authentication scheme. Another way to specify username and password is in the URL itself (See section URL Format). For more information about security issues with Wget, See section Security Considerations.
`-C on/off'
`--cache=on/off'
When set to off, disable server-side cache. In this case, Wget will send the remote server an appropriate directive (`Pragma: no-cache') to get the file from the remote service, rather than returning the cached version. This is especially useful for retrieving and flushing out-of-date documents on proxy servers. Caching is allowed by default.
`--ignore-length'
Unfortunately, some HTTP servers (CGI programs, to be more precise) send out bogus Content-Length headers, which makes Wget go wild, as it thinks not all the document was retrieved. You can spot this syndrome if Wget retries getting the same document again and again, each time claiming that the (otherwise normal) connection has closed on the very same byte. With this option, Wget will ignore the Content-Length header--as if it never existed.
`--header=additional-header'
Define an additional-header to be passed to the HTTP servers. Headers must contain a `:' preceded by one or more non-blank characters, and must not contain newlines. You may define more than one additional header by specifying `--header' more than once.
wget --header='Accept-Charset: iso-8859-2' \
     --header='Accept-Language: hr'        \
       http://fly.cc.fer.hr/
Specification of an empty string as the header value will clear all previous user-defined headers.
`--proxy-user=user'
`--proxy-passwd=password'
Specify the username user and password password for authentication on a proxy server. Wget will encode them using the basic authentication scheme.
`-s'
`--save-headers'
Save the headers sent by the HTTP server to the file, preceding the actual contents, with an empty line as the separator.
`-U agent-string'
`--user-agent=agent-string'
Identify as agent-string to the HTTP server. The HTTP protocol allows the clients to identify themselves using a User-Agent header field. This enables distinguishing the WWW software, usually for statistical purposes or for tracing of protocol violations. Wget normally identifies as `Wget/version', version being the current version number of Wget. However, some sites have been known to impose the policy of tailoring the output according to the User-Agent-supplied information. While conceptually this is not such a bad idea, it has been abused by servers denying information to clients other than Mozilla or Microsoft Internet Explorer. This option allows you to change the User-Agent line issued by Wget. Use of this option is discouraged, unless you really know what you are doing. NOTE that Netscape Communications Corp. has claimed that false transmissions of `Mozilla' as the User-Agent are a copyright infringement, which will be prosecuted. DO NOT misrepresent Wget as Mozilla.


Go to the first, previous, next, last section, table of contents.