php - How to detect if ssl is enabled by entering url? -
i developing system can check if remote server has or not ssl enabled
input simple url, example http://www.stackoverflow.com
how can ?
- using curl invoke given url
- get header curl
read header info returned curl response
for curl library , curl function, go through http://php.net/manual/en/book.curl.php
Comments
Post a Comment