note 92977 added to function.get-headers

From: Date: Mon, 17 Aug 2009 22:55:54 +0000
Subject: note 92977 added to function.get-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-159581@lists.php.net to get a copy of this message
response for : gabe at vtunnel dot com for following redirections and get all headers, it's more faster to do this : <?php function get_all_headers_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $r = curl_exec($ch); $r = split("\n", $r); return $r; } ?> ---- Server IP: 89.31.146.176 Probable Submitter: 82.246.106.154 ---- Manual Page -- http://www.php.net/manual/en/function.get-headers.php Edit -- https://master.php.net/note/edit/92977 Del: integrated -- https://master.php.net/note/delete/92977/integrated Del: useless -- https://master.php.net/note/delete/92977/useless Del: bad code -- https://master.php.net/note/delete/92977/bad+code Del: spam -- https://master.php.net/note/delete/92977/spam Del: non-english -- https://master.php.net/note/delete/92977/non-english Del: in docs -- https://master.php.net/note/delete/92977/in+docs Del: other reasons-- https://master.php.net/note/delete/92977 Reject -- https://master.php.net/note/reject/92977 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159581) next »