File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Url Connection Error

 
Pankaj Singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Something like:
final URL url = new URL(urlStr.toString());
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.connect();
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic