krot

HEAD METHOD

Oct 18th, 2016
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // открываем сокет
  2. $context  = stream_context_create(array('https' =>array('method'=>'HEAD')));
  3. $fd = fopen('https://reg.ru/', 'rb', false, $context);
  4. var_dump(stream_get_meta_data($fd));
  5. fclose($fd);
RAW Paste Data