Hello group,

I have written a "sonar" for web services. One part of that application is the httpClient.
It is quite simple: I will do a checkup whether a web server is online or not. I am using the http-response code for that. Everything works like it should.


Now my problem: In my company there are some redirects to certain server. e.g. my boss is monitoring http://www.andaluciajunta.es. That page will be redirected to http://andaluciajunta.es. Than I will get the following error:

2004.04.20 18:30:46,098 [Thread-704] ERROR sonda.sonar.HttpClient - Failed to download 
file.
org.apache.commons.httpclient.HttpConnection$ConnectionTimeoutException
       at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:716)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:661)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
      ...

2004.04.20 18:30:54,378 [http8090-Processor4] WARN org.apache.commons.httpclient.HttpConnection - The host www.andaluciajunta.es:80 (or proxy null:-1) did not accept the connection within timeout of 15000 milliseconds

2004.04.20 18:30:54,378 [http8090-Processor4] ERROR sonda.sonar.HttpClient - Failed to 
download file.
org.apache.commons.httpclient.HttpConnection$ConnectionTimeoutException
       at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:716)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:661)
       at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
       at sonda.sonar.HttpClient.getHttp(HttpClient.java:66)
...

I know that was before in this list, but can't google a workaround to that problem!

Do have anybody an idea how can I solve that?

Any help very appreciated!

king regards
Thorsten


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to