Thursday, 19 September 2013

Check if URL has http or https from string

Check if URL has http or https from string

I have a textbox in which the user enters url.
For example, the user enters www.google.com or http://www.google.com. But
google has https, not http.
How can I check whether the url is http or https from the string which the
user enters?

No comments:

Post a Comment