File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Unable to connect a remote server from a servlet using HttpsUrlConnection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Unable to connect a remote server from a servlet using HttpsUrlConnection" Watch "Unable to connect a remote server from a servlet using HttpsUrlConnection" New topic
Author

Unable to connect a remote server from a servlet using HttpsUrlConnection

Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unable to connect a remote server from a servlet using HttpsUrlConnection
 
Similar Threads
Clearing SSLSessions
HttpsURLConnection problem
Connect to S/390 DB2
[B]Urgent : HttpsURLConnection[/B]
java.io.IOException: Server returned HTTP response code: 500 for URL: