note 85580 added to function.curl-setopt

From: Date: Sat, 06 Sep 2008 21:51:19 +0000
Subject: note 85580 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-144204@lists.php.net to get a copy of this message
Like eion said before (http://br.php.net/manual/ro/function.curl-setopt.php#71313), the function CURLOPT_FOLLOWLOCATION don't will work when OPEN_BASEDIR is ON (or SAFE_MODE is ON). he created a CURLOPT_FOLLOWLOCATION function alternative named: curl_redir_exec() Well, this function have a little error on line that contains: list($header, $data) = explode("\n\n", $data, 2); do you have replace for: list($header, $data) = explode("\r\n", $data, 2); note the '\n\n' cause this error, so just replace for '\r\n'. Thanks Eion for your curl_redir_exec() Function :) ---- Server IP: 200.185.126.110 Probable Submitter: 189.71.101.175 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/85580 Del: integrated -- https://master.php.net/note/delete/85580/integrated Del: useless -- https://master.php.net/note/delete/85580/useless Del: bad code -- https://master.php.net/note/delete/85580/bad+code Del: spam -- https://master.php.net/note/delete/85580/spam Del: non-english -- https://master.php.net/note/delete/85580/non-english Del: in docs -- https://master.php.net/note/delete/85580/in+docs Del: other reasons-- https://master.php.net/note/delete/85580 Reject -- https://master.php.net/note/reject/85580 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144204) next »