Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent help needed..............

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic