diff options
author | obrien <obrien@FreeBSD.org> | 2000-02-13 02:00:49 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-02-13 02:00:49 +0800 |
commit | 16a737ceffe9fc6c6c737b0b7b897afc35c7e004 (patch) | |
tree | ebb854c9d498d8de6315a57a2d3f02e52d152bd2 /ftp/wget | |
parent | 30b394bdfb71a4200bdd0a14c7961d2d7fb91149 (diff) | |
download | freebsd-ports-gnome-16a737ceffe9fc6c6c737b0b7b897afc35c7e004.tar.gz freebsd-ports-gnome-16a737ceffe9fc6c6c737b0b7b897afc35c7e004.tar.zst freebsd-ports-gnome-16a737ceffe9fc6c6c737b0b7b897afc35c7e004.zip |
"Now we can send a request with `Referer:' by setting the environment
variable `referer' as well as `http_proxy'."
Submitted by: shige
Diffstat (limited to 'ftp/wget')
-rw-r--r-- | ftp/wget/files/patch-retr.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ftp/wget/files/patch-retr.c b/ftp/wget/files/patch-retr.c new file mode 100644 index 000000000000..dac6d57d6591 --- /dev/null +++ b/ftp/wget/files/patch-retr.c @@ -0,0 +1,21 @@ +--- src/retr.c.orig Wed Feb 9 00:18:45 2000 ++++ src/retr.c Wed Feb 9 00:18:51 2000 +@@ -445,7 +445,7 @@ + recursive_reset (); + for (cur_url = url_list; cur_url; cur_url = cur_url->next, ++*count) + { +- char *filename, *new_file; ++ char *filename, *new_file, *referer; + int dt; + + if (opt.quota && opt.downloaded > opt.quota) +@@ -453,7 +453,8 @@ + status = QUOTEXC; + break; + } +- status = retrieve_url (cur_url->url, &filename, &new_file, NULL, &dt); ++ referer = getenv("referer"); ++ status = retrieve_url (cur_url->url, &filename, &new_file, referer, &dt); + if (opt.recursive && status == RETROK && (dt & TEXTHTML)) + status = recursive_retrieve (filename, new_file ? new_file : cur_url->url); + |