wolffd@0: function [ out ] = wget(url, options) wolffd@0: %WGET Summary of this function goes here wolffd@0: % Detailed explanation goes here wolffd@0: % wolffd@0: % GNU Wget 1.11.4, a non-interactive network retriever. wolffd@0: % Usage: wget [OPTION]... [URL]... wolffd@0: % wolffd@0: % Mandatory arguments to long options are mandatory for short options too. wolffd@0: % wolffd@0: % Startup: wolffd@0: % -V, --version display the version of Wget and exit. wolffd@0: % -h, --help print this help. wolffd@0: % -b, --background go to background after startup. wolffd@0: % -e, --execute=COMMAND execute a `.wgetrc'-style command. wolffd@0: % wolffd@0: % Logging and input file: wolffd@0: % -o, --output-file=FILE log messages to FILE. wolffd@0: % -a, --append-output=FILE append messages to FILE. wolffd@0: % -d, --debug print lots of debugging information. wolffd@0: % -q, --quiet quiet (no output). wolffd@0: % -v, --verbose be verbose (this is the default). wolffd@0: % -nv, --no-verbose turn off verboseness, without being quiet. wolffd@0: % -i, --input-file=FILE download URLs found in FILE. wolffd@0: % -F, --force-html treat input file as HTML. wolffd@0: % -B, --base=URL prepends URL to relative links in -F -i file. wolffd@0: % wolffd@0: % Download: wolffd@0: % -t, --tries=NUMBER set number of retries to NUMBER (0 unlimits). wolffd@0: % --retry-connrefused retry even if connection is refused. wolffd@0: % -O, --output-document=FILE write documents to FILE. wolffd@0: % -nc, --no-clobber skip downloads that would download to wolffd@0: % existing files. wolffd@0: % -c, --continue resume getting a partially-downloaded file. wolffd@0: % --progress=TYPE select progress gauge type. wolffd@0: % -N, --timestamping don't re-retrieve files unless newer than wolffd@0: % local. wolffd@0: % -S, --server-response print server response. wolffd@0: % --spider don't download anything. wolffd@0: % -T, --timeout=SECONDS set all timeout values to SECONDS. wolffd@0: % --dns-timeout=SECS set the DNS lookup timeout to SECS. wolffd@0: % --connect-timeout=SECS set the connect timeout to SECS. wolffd@0: % --read-timeout=SECS set the read timeout to SECS. wolffd@0: % -w, --wait=SECONDS wait SECONDS between retrievals. wolffd@0: % --waitretry=SECONDS wait 1..SECONDS between retries of a retrieval. wolffd@0: % --random-wait wait from 0...2*WAIT secs between retrievals. wolffd@0: % --no-proxy explicitly turn off proxy. wolffd@0: % -Q, --quota=NUMBER set retrieval quota to NUMBER. wolffd@0: % --bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host. wolffd@0: % --limit-rate=RATE limit download rate to RATE. wolffd@0: % --no-dns-cache disable caching DNS lookups. wolffd@0: % --restrict-file-names=OS restrict chars in file names to ones OS allows. wolffd@0: % --ignore-case ignore case when matching files/directories. wolffd@0: % --user=USER set both ftp and http user to USER. wolffd@0: % --password=PASS set both ftp and http password to PASS. wolffd@0: % wolffd@0: % Directories: wolffd@0: % -nd, --no-directories don't create directories. wolffd@0: % -x, --force-directories force creation of directories. wolffd@0: % -nH, --no-host-directories don't create host directories. wolffd@0: % --protocol-directories use protocol name in directories. wolffd@0: % -P, --directory-prefix=PREFIX save files to PREFIX/... wolffd@0: % --cut-dirs=NUMBER ignore NUMBER remote directory components. wolffd@0: % wolffd@0: % HTTP options: wolffd@0: % --http-user=USER set http user to USER. wolffd@0: % --http-password=PASS set http password to PASS. wolffd@0: % --no-cache disallow server-cached data. wolffd@0: % -E, --html-extension save HTML documents with `.html' extension. wolffd@0: % --ignore-length ignore `Content-Length' header field. wolffd@0: % --header=STRING insert STRING among the headers. wolffd@0: % --max-redirect maximum redirections allowed per page. wolffd@0: % --proxy-user=USER set USER as proxy username. wolffd@0: % --proxy-password=PASS set PASS as proxy password. wolffd@0: % --referer=URL include `Referer: URL' header in HTTP request. wolffd@0: % --save-headers save the HTTP headers to file. wolffd@0: % -U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION. wolffd@0: % --no-http-keep-alive disable HTTP keep-alive (persistent connections). wolffd@0: % --no-cookies don't use cookies. wolffd@0: % --load-cookies=FILE load cookies from FILE before session. wolffd@0: % --save-cookies=FILE save cookies to FILE after session. wolffd@0: % --keep-session-cookies load and save session (non-permanent) cookies. wolffd@0: % --post-data=STRING use the POST method; send STRING as the data. wolffd@0: % --post-file=FILE use the POST method; send contents of FILE. wolffd@0: % --content-disposition honor the Content-Disposition header when wolffd@0: % choosing local file names (EXPERIMENTAL). wolffd@0: % --auth-no-challenge Send Basic HTTP authentication information wolffd@0: % without first waiting for the server's wolffd@0: % challenge. wolffd@0: % wolffd@0: % HTTPS (SSL/TLS) options: wolffd@0: % --secure-protocol=PR choose secure protocol, one of auto, SSLv2, wolffd@0: % SSLv3, and TLSv1. wolffd@0: % --no-check-certificate don't validate the server's certificate. wolffd@0: % --certificate=FILE client certificate file. wolffd@0: % --certificate-type=TYPE client certificate type, PEM or DER. wolffd@0: % --private-key=FILE private key file. wolffd@0: % --private-key-type=TYPE private key type, PEM or DER. wolffd@0: % --ca-certificate=FILE file with the bundle of CA's. wolffd@0: % --ca-directory=DIR directory where hash list of CA's is stored. wolffd@0: % --random-file=FILE file with random data for seeding the SSL PRNG. wolffd@0: % --egd-file=FILE file naming the EGD socket with random data. wolffd@0: % wolffd@0: % FTP options: wolffd@0: % --ftp-user=USER set ftp user to USER. wolffd@0: % --ftp-password=PASS set ftp password to PASS. wolffd@0: % --no-remove-listing don't remove `.listing' files. wolffd@0: % --no-glob turn off FTP file name globbing. wolffd@0: % --no-passive-ftp disable the "passive" transfer mode. wolffd@0: % --retr-symlinks when recursing, get linked-to files (not dir). wolffd@0: % --preserve-permissions preserve remote file permissions. wolffd@0: % wolffd@0: % Recursive download: wolffd@0: % -r, --recursive specify recursive download. wolffd@0: % -l, --level=NUMBER maximum recursion depth (inf or 0 for infinite). wolffd@0: % --delete-after delete files locally after downloading them. wolffd@0: % -k, --convert-links make links in downloaded HTML point to local files. wolffd@0: % -K, --backup-converted before converting file X, back up as X.orig. wolffd@0: % -m, --mirror shortcut for -N -r -l inf --no-remove-listing. wolffd@0: % -p, --page-requisites get all images, etc. needed to display HTML page. wolffd@0: % --strict-comments turn on strict (SGML) handling of HTML comments. wolffd@0: % wolffd@0: % Recursive accept/reject: wolffd@0: % -A, --accept=LIST comma-separated list of accepted extensions. wolffd@0: % -R, --reject=LIST comma-separated list of rejected extensions. wolffd@0: % -D, --domains=LIST comma-separated list of accepted domains. wolffd@0: % --exclude-domains=LIST comma-separated list of rejected domains. wolffd@0: % --follow-ftp follow FTP links from HTML documents. wolffd@0: % --follow-tags=LIST comma-separated list of followed HTML tags. wolffd@0: % --ignore-tags=LIST comma-separated list of ignored HTML tags. wolffd@0: % -H, --span-hosts go to foreign hosts when recursive. wolffd@0: % -L, --relative follow relative links only. wolffd@0: % -I, --include-directories=LIST list of allowed directories. wolffd@0: % -X, --exclude-directories=LIST list of excluded directories. wolffd@0: % -np, --no-parent don't ascend to the parent directory. wolffd@0: % wolffd@0: % Mail bug reports and suggestions to . wolffd@0: wolffd@0: cmd=sprintf('%s %s %s','wget', options, url); wolffd@0: out = system(cmd); wolffd@0: end wolffd@0: