Did it!


David (cl2david@cling.gu.se)
Sat, 13 Dec 1997 01:41:59 +0100


I'm not sure this is the way you would have done it, but here is a
patch that works:

*** htdig-3.0.8b1/htdig/Document.cc.orig Sun Apr 20 17:25:28 1997
--- htdig-3.0.8b1/htdig/Document.cc Sat Dec 13 01:31:42 1997
***************
*** 293,298 ****
--- 293,302 ----
      }
      command << "User-Agent: htdig/" << HTDIG_VERSION <<
        " (" << config["maintainer"] << ")\r\n";
+ command << "Host: " << url->host();
+ if (url->port() != 80)
+ command << ":" << url->port();
+ command << "\r\n";
  
      //
      // If a referer was provided, we'll send that as well.
*** htdig-3.0.8b1/htdig/Images.cc.orig Fri Feb 7 10:13:31 1997
--- htdig-3.0.8b1/htdig/Images.cc Sat Dec 13 01:29:04 1997
***************
*** 88,94 ****
                String command = "HEAD ";
                command << Url.path() << " HTTP/1.0\r\n";
                command << "User-Agent: htdig/" << HTDIG_VERSION << " (" << config["maintainer"] << ")\r\n";
! command << "\r\n";
  
                c.write(command);
  
--- 88,97 ----
                String command = "HEAD ";
                command << Url.path() << " HTTP/1.0\r\n";
                command << "User-Agent: htdig/" << HTDIG_VERSION << " (" << config["maintainer"] << ")\r\n";
! command << "Host: " << Url.host();
! if (Url.port() != 80)
! command << ":" << Url.port();
! command << "\r\n\r\n";
  
                c.write(command);
  
/David, relieved

-- 
David, datorligist                              cl2david@cling.gu.se
Computational Linguistics student & Consultant Systems Administrator
Ask for PGP public key, or check   http://www.cling.gu.se/~cl2david/
Do good --- be good --- feel good.                       Carpe diem!



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:24 PST