1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP - how to get headers of an HTTPS page?

Discussion in 'PHP & Perl' started by bizbez, Jul 9, 2012.

  1. bizbez

    bizbez Registered Member

    Joined:
    Jan 26, 2011
    Messages:
    86
    Likes Received:
    3
    hi,

    i'd like to check the server headers (200/404/502) of an HTTPS page.

    how do i do that in PHP?

    the function get-headers doesn't support HTTPS.


    thanks guys!
     
  2. gooldude13

    gooldude13 Newbie

    Joined:
    Jun 11, 2011
    Messages:
    24
    Likes Received:
    25
    that defeats the whole purpose of ssl, bro. ALL information (including header information) is encrypted. the only thing not encrypted is stuff related to SSL setup and key exchange (which is done very carefully as to thwart eavesdroppers.)

    hope this was helpful.
     
  3. loki_

    loki_ Registered Member

    Joined:
    May 20, 2012
    Messages:
    63
    Likes Received:
    8
    Location:
    #!/bin/bash/
    You can't. The main purpose of ssl is after all security. No system has ever been completely immune to attacks and thanks to factors such as exploitdb leaving such information exposed is a bit of an issue.