Advertisement
krot

HEAD METHOD

Oct 18th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement