Hi

It was easier then I thought.
May I commit this patch?

Vadim.

Index: HtHTTP.h
===================================================================
RCS file: /opt/htdig/cvs/htdig3/htnet/HtHTTP.h,v
retrieving revision 1.8.2.2
diff -u -r1.8.2.2 HtHTTP.h
--- HtHTTP.h    1999/11/28 02:46:08     1.8.2.2
+++ HtHTTP.h    1999/12/03 18:05:56
@@ -252,7 +252,9 @@

    static void SetParsingController (int (*f)(char*)) { CanBeParsed =
f; }

-
+   // Proxy settings
+       void SetProxy(int aUse) { _useproxy=aUse; }
+
 protected:

 ///////
@@ -272,11 +274,9 @@
    ///////

    int         _bytes_read;        // Bytes read
-
    URL         _url;               // URL to retrieve
-
    URL         _referer;           // Referring URL
-
+   int         _useproxy;          // if true, GET should include full
url, not path only

    ///////
       //    Http multiple Request information

Index: Document.cc
===================================================================
RCS file: /opt/htdig/cvs/htdig3/htdig/Document.cc,v
retrieving revision 1.55.2.6
diff -u -r1.55.2.6 Document.cc
--- Document.cc 1999/11/28 02:45:09     1.55.2.6
+++ Document.cc 1999/12/03 18:09:27
@@ -280,7 +291,7 @@
             cout << endl;
          }
       }
-
+      HTTPConnect->SetProxy(useproxy);
       transportConnect = HTTPConnect;
    }
    else

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 

Reply via email to