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

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -