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

Unable to connect a remote server from a servlet using HttpsUrlConnection

 
Mohan Panigrahi
Ranch Hand
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am able to connect to a remote server using HttpsUrlConnection, from a standalone java program. But when I try to do so from within a servlet, the connection times out.
Any pointer on why this can happen would be appreciated.
Note : The server on which servlet is deployed and the server to which it is establishing connection are on different machines.
Thank
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic