Update of /cvsroot/archive-crawler/ArchiveOpenCrawler/src/org/archive/crawler/basic
In directory sc8-pr-cvs1:/tmp/cvs-serv21453/src/org/archive/crawler/basic
Modified Files:
FetcherHTTPSimple.java
Log Message:
revise deprecated
Index: FetcherHTTPSimple.java
===================================================================
RCS file: /cvsroot/archive-crawler/ArchiveOpenCrawler/src/org/archive/crawler/basic/FetcherHTTPSimple.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FetcherHTTPSimple.java 6 Sep 2003 01:43:07 -0000 1.7
--- FetcherHTTPSimple.java 23 Sep 2003 01:15:19 -0000 1.8
***************
*** 13,16 ****
--- 13,17 ----
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
+ import org.apache.commons.httpclient.HttpVersion;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import org.apache.commons.httpclient.cookie.CookiePolicy;
***************
*** 77,81 ****
GetMethod get = new GetMethod(curi.getUURI().getUri().toASCIIString());
get.setFollowRedirects(false); // don't auto-follow redirects
! get.setHttp11(false);
// use only HTTP/1.0 (to avoid receiving chunked responses)
get.setRequestHeader(
--- 78,82 ----
GetMethod get = new GetMethod(curi.getUURI().getUri().toASCIIString());
get.setFollowRedirects(false); // don't auto-follow redirects
! get.getParams().setVersion(HttpVersion.HTTP_1_0);
// use only HTTP/1.0 (to avoid receiving chunked responses)
get.setRequestHeader(
|