daniel martin wrote:

> I'm trying to get my tomcat instance to connect over https to an external
> server.
> I have written a test servlet to do this
>
> String httpsURL = "*https*://*example*.microsoft.com";

The '*'s aren't really in your code, are they?

> But always get the following exception
>
> java.net.UnknownHostException: example.microsoft.com
>       java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>       java.net.Socket.connect(Socket.java:519)
>       java.net.Socket.connect(Socket.java:469)....
>
> Any ideas?

Yes.
1. Check the DNS settings of the machine. example.microsoft.com should be 
resolvable.
2. Connect to a server that presents a certificate to your client that matches 
the host's name or set a HostnameVerifier with a verify method that returns 
true for this connection.
3. Connect to a host that actually returns content and not only an error 
message.

BTW: this has nothing to do with Tomcat.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to