commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex <alexn...@optonline.net>
Subject common-httpclient socket timeout
Date Mon, 20 Mar 2006 00:19:20 GMT
I need to set a timeout parameter for a URL. To see if the site is timing
out, (if possible how long it takes to load the site), or just throw an
exception if website is not loaded within given time. 
 
I know I am doing something wrong in the code below, does someone know

HttpClient client = new HttpClient();

HttpClientParams clientParams = new HttpClientParams();
clientParams.setConnectionManagerTimeout(10000);

client.setParams(clientParams);

Thanks
Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message