Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent help needed..............  RSS feed

 
Senthil Subramanian
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have given a URL.I have to identify whether it is a http(80) protocol or https(443) protocol.How to identify it as a SSL or http if only the url is given.Any idea?.
Thankyou for your Anticipation
Senthil
 
Mirza Galib
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http works on port 80 while https on 403 .
if u only have the domain name the the maximum thing u can do is to query both the ports on server.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
URL.getProtocol()?
- Peter
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!