From: hniksic Date: Thu, 2 Mar 2000 14:23:22 +0000 (-0800) Subject: [svn] *** empty log message *** X-Git-Tag: v1.13~2510 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=1dc66a6cf6d2a67b98e6378c55aa598733fbf116 [svn] *** empty log message *** --- diff --git a/po/de.gmo b/po/de.gmo index 57fdc24e..3c1b0bbd 100644 Binary files a/po/de.gmo and b/po/de.gmo differ diff --git a/po/hr.gmo b/po/hr.gmo index 9106a1a7..3ab2e124 100644 Binary files a/po/hr.gmo and b/po/hr.gmo differ diff --git a/po/hr.po b/po/hr.po index 5284d8dc..ed249449 100644 --- a/po/hr.po +++ b/po/hr.po @@ -213,7 +213,7 @@ msgstr "Dubina rekurzije %d prelazi najve msgid "" "Server file no newer than local file `%s' -- not retrieving.\n" "\n" -msgstr "" +msgstr "Datoteka na posluĀ¾itelju nije novija od lokalne datoteke `%s' -- ne skidam." #: src/ftp.c:1112 src/http.c:1109 #, fuzzy, c-format @@ -522,7 +522,7 @@ msgstr "Nevaljan Last-Modified header -- ignoriram vremensku oznaku.\n" msgid "" "Server file no newer than local file `%s.orig' -- not retrieving.\n" "\n" -msgstr "" +msgstr "Datoteka na posluĀ¾itelju nije novija od lokalne datoteke `%s.orig' -- ne skidam." #: src/http.c:1113 msgid "Remote file is newer, retrieving.\n" diff --git a/po/it.gmo b/po/it.gmo index 81e65cf3..6497e68e 100644 Binary files a/po/it.gmo and b/po/it.gmo differ diff --git a/po/pt_BR.gmo b/po/pt_BR.gmo index 13949dbe..b6bfe117 100644 Binary files a/po/pt_BR.gmo and b/po/pt_BR.gmo differ diff --git a/src/ChangeLog b/src/ChangeLog index 95107195..e60b55bc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2000-01-30 Damir Dzeko + + * http.c (gethttp): Send custom Referer, if required. + 1999-09-24 Charles G Waldman * netrc.c (parse_netrc): Allow passwords to contain spaces. diff --git a/src/init.c b/src/init.c index 1d004c39..83c954b1 100644 --- a/src/init.c +++ b/src/init.c @@ -134,6 +134,7 @@ static struct { { "quota", &opt.quota, cmd_bytes }, { "reclevel", &opt.reclevel, cmd_number_inf }, { "recursive", NULL, cmd_spec_recursive }, + { "referer", &opt.referer, cmd_string }, { "reject", &opt.rejects, cmd_vector }, { "relativeonly", &opt.relative_only, cmd_boolean }, { "removelisting", &opt.remove_listing, cmd_boolean }, @@ -923,6 +924,7 @@ cleanup (void) FREE_MAYBE (opt.http_proxy); free_vec (opt.no_proxy); FREE_MAYBE (opt.useragent); + FREE_MAYBE (opt.referer); FREE_MAYBE (opt.http_user); FREE_MAYBE (opt.http_passwd); FREE_MAYBE (opt.user_header); diff --git a/src/main.c b/src/main.c index 65d5f6ac..a70e1119 100644 --- a/src/main.c +++ b/src/main.c @@ -265,6 +265,7 @@ main (int argc, char *const *argv) { "timeout", required_argument, NULL, 'T' }, { "tries", required_argument, NULL, 't' }, { "user-agent", required_argument, NULL, 'U' }, + { "referer", required_argument, NULL, 129 }, { "use-proxy", required_argument, NULL, 'Y' }, { "wait", required_argument, NULL, 'w' }, { 0, 0, 0, 0 } @@ -549,6 +550,9 @@ GNU General Public License for more details.\n")); case 'U': setval ("useragent", optarg); break; + case 129: + setval ("referer", optarg); + break; case 'w': setval ("wait", optarg); break; diff --git a/src/options.h b/src/options.h index cd53f8e5..b43bf7b3 100644 --- a/src/options.h +++ b/src/options.h @@ -120,6 +120,9 @@ struct options char *useragent; /* Naughty User-Agent, which can be set to something other than Wget. */ + char *referer; /* Naughty Referer, which can be + set to something other than + NULL. */ int convert_links; /* Will the links be converted locally? */ int remove_listing; /* Do we remove .listing files diff --git a/src/retr.c b/src/retr.c index d90fa529..81cf5b73 100644 --- a/src/retr.c +++ b/src/retr.c @@ -322,9 +322,10 @@ retrieve_url (const char *origurl, char **file, char **newloc, /* Set the referer. */ if (refurl) u->referer = xstrdup (refurl); - else - u->referer = NULL; - + else { + u->referer = opt.referer; + } + local_use_proxy = USE_PROXY_P (u); if (local_use_proxy) {