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 ?

  1. using curl invoke given url
  2. get header curl
  3. read header info returned curl response

    for curl library , curl function, go through http://php.net/manual/en/book.curl.php


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -