--- src/main.c.orig	Wed Feb  9 00:12:01 2000
+++ src/main.c	Wed Feb  9 00:17:06 2000
@@ -655,10 +655,11 @@
   /* Retrieve the URLs from argument list.  */
   for (t = url; *t; t++)
     {
-      char *filename, *new_file;
+      char *filename, *new_file, *referer;
       int dt;
 
-      status = retrieve_url (*t, &filename, &new_file, NULL, &dt);
+      referer = getenv("referer");
+      status = retrieve_url (*t, &filename, &new_file, referer, &dt);
       if (opt.recursive && status == RETROK && (dt & TEXTHTML))
 	status = recursive_retrieve (filename, new_file ? new_file : *t);
       FREE_MAYBE (new_file);

