When performing requests in Java with java.net.HttpURLConnection sometimes the server responds with a 503 error code. Using the Apache HttpClient will be easier because it automates the small tasks. It will also help us pinpoint the cause of the error code (see tutorial at http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html).
When performing requests in Java with java.net.HttpURLConnection sometimes the server responds with a 503 error code. Using the Apache HttpClient will be easier because it automates the small tasks. It will also help us pinpoint the cause of the error code (see tutorial at http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html).