I have an application deployed on Websphere which opens up HTTP URL connection to different other app server.
It takes URL list as a parameter , appends some parameter and invokes the connect method.
final URL url = new URL(urlStr.toString());
urlConnection = (HttpURLConnection) url.openConnection();
final int returnCode = urlConnection.getResponseCode();
We have two data center on Production and this works on one . i.e the return code comes back as 200 whereas it fails on other data centers (returns error code as 503,404,406 etc) for the same set of URL's.
Also if i were to take those URL and invoke them directly from teh browser it works all the time.
I'm ruling out this to be a code issue otherwise it shodln't be working on one data center.
I'm wondering is there a Websphere App Server conatiner property which will only permit URL's coming from a known source ?
Any other thoughts as to what should be checked as far as configuration goes ?