note 87406 deleted from function.curl-setopt by danbrown
| From: | danbrown@php.net | Date: | Thu, 04 Dec 2008 05:37:55 +0000 |
| Subject: | note 87406 deleted from function.curl-setopt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147609@lists.php.net to get a copy of this message | ||
Note Submitter: reece at nospam dot com
----
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!