patch for softvirtuals...


Gerald Kropitz (gkropitz@Austria.EU.net)
Mon, 1 Dec 1997 14:13:52 +0100


hi,

i found out that htdig has problems with servers based on so called
"soft-virtual-technology"...

soft-virtuals require an additional field in the http-header named
"Host: www.blabla.com"...

--- Document.cc.orig Sun Apr 20 17:25:28 1997
+++ Document.cc Mon Dec 1 14:11:21 1997
@@ -290,6 +290,7 @@
     else
     {
        command << url->path() << " HTTP/1.0\r\n";
+ command << "Host: " << url->host() << "\r\n";
     }
     command << "User-Agent: htdig/" << HTDIG_VERSION <<
        " (" << config["maintainer"] << ")\r\n";

now it works...

-gerald

PS: when do you release the "next" htdig?



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