note 87406 added to function.curl-setopt

From: Date: Thu, 04 Dec 2008 05:12:32 +0000
Subject: note 87406 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-147608@lists.php.net to get a copy of this message
Hi all, Following AmBAR's critique http://ca3.php.net/manual/en/function.curl-setopt.php#85580 of eion's CURLOPT_FOLLOWLOCATION work around function for people with safe mode = ON or a set open_basedir, I would like to re-correct AmBAR. I read AmBAR's post and changed the '\n\n' to a '\r\n' before trying it in eion's original state. The code didn't work & sent the recursive function into an infinite loop stuck on the first page (as pointed out by eion's debug() command). Frustraited I almost moved onto something else (i.e. threatening my host to remove the open_basedir setting - or else!). However I reverted to eion's original code with the '\n\n' and low and behold it worked first try. I'm not sure if your tried the code before you commented on it AmBAR & were just speculating on what looked right, or if we're using different server OS's with different carraige returns (e.g. Windows IIS vs Linux Apache) however the code worked fine for me. Thanks eion! ---- Server IP: 200.185.109.13 Probable Submitter: 24.85.230.200 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/87406 Del: integrated -- https://master.php.net/note/delete/87406/integrated Del: useless -- https://master.php.net/note/delete/87406/useless Del: bad code -- https://master.php.net/note/delete/87406/bad+code Del: spam -- https://master.php.net/note/delete/87406/spam Del: non-english -- https://master.php.net/note/delete/87406/non-english Del: in docs -- https://master.php.net/note/delete/87406/in+docs Del: other reasons-- https://master.php.net/note/delete/87406 Reject -- https://master.php.net/note/reject/87406 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147608) next »