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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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