note 92814 added to book.curl

From: Date: Mon, 10 Aug 2009 20:05:05 +0000
Subject: note 92814 added to book.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-159285@lists.php.net to get a copy of this message
Function to get redirected url: <?php function get_final_url($url,$timeout=30) { $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); curl_setopt( $ch, CURLOPT_COOKIEJAR, '-' ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $content = curl_exec( $ch ); $response = curl_getinfo( $ch ); curl_close ( $ch ); return $response['url']; } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 146.95.31.132 ---- Manual Page -- http://www.php.net/manual/en/book.curl.php Edit -- https://master.php.net/note/edit/92814 Del: integrated -- https://master.php.net/note/delete/92814/integrated Del: useless -- https://master.php.net/note/delete/92814/useless Del: bad code -- https://master.php.net/note/delete/92814/bad+code Del: spam -- https://master.php.net/note/delete/92814/spam Del: non-english -- https://master.php.net/note/delete/92814/non-english Del: in docs -- https://master.php.net/note/delete/92814/in+docs Del: other reasons-- https://master.php.net/note/delete/92814 Reject -- https://master.php.net/note/reject/92814 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159285) next »