Hello,

 

Just a question about exceptions sending http requests. 

 

If I set a very low value to
HttpConnectionParams.setConnectionTimeout(this.objHttpParams,
connectionTimeout), httpclient throws “SocketTimeoutException” with the
message “connect timed out”, but I expected to receive a
“ConnectTimeoutException” (as HttpClient3).  Is this right?

 

The problem is that a response timeout also throws “SocketTimeoutException”
(with the message “Read timed out”, as expected). Then, should I read the
exception message to know which exception was thrown?

 

Thanks,

 

Joan. 

 

Reply via email to