Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to validate Url  RSS feed

 
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.
 
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!