Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to validate Url

 
Thirumurugan Sivaji
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have validated url that starts with http:// using



but, How to validate url that starts with https://, when I give https:// format exception occurs that certificate is required. How to do that?.

Thanks in advance
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This format exception is not because of your URL change from http:// to https://. This is because you have to make url connection without declare method. you have to specify using which method Get or Post you want to make connection with that URL. I give you brief idea about how you make connection. currently I am also use same connection. i don't have change code for http:// to https:// change url.



it looks like this. this will make connection.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic