Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes Not able to connect to a host URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

Not able to connect to a host URL

Deepshan Shetty
Greenhorn

Joined: May 28, 2012
Posts: 28
Hi

I'm trying to connect to a URL (https://infinity.bank.co.in/AWAY) through my jsp.
But i get an exception like
exception in urlConnect-->java.net.UnknownHostException: infinity.bank.co.in

My code to connect is as follows


where VerifyResponseURL = https://infinity.bank.co.in/AWAY
and the URL is correct

Can i get a solution to this?
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Please CarefullyChooseOneForum. The question has nothing to do with XML. You could have posted in Java In-General forum.
Deepshan Shetty
Greenhorn

Joined: May 28, 2012
Posts: 28
Yes sorry i just realized it now.
posted it in JSP forum

Did not know how to delete the wrong post
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Okay.

Duplicate of http://www.coderanch.com/t/582440/JSP/java/Not-able-connect-host-URL
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
shraddha dsn wrote:Did not know how to delete the wrong post

No problem. I have reported the thread to the moderator using the Report button.
Deepshan Shetty
Greenhorn

Joined: May 28, 2012
Posts: 28
Ok..

Thanks a Lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to connect to a host URL
 
Similar Threads
Unable / How to make Https request using Java
HttpsURLConnection ClassCastException Question
Overriding the Security Certificate
JSEE
Communicating with HTTPS server with Client Authentication