note 58074 added to function.curl-setopt
| From: | phpnetatwafflehousedotde at osu1 dot php dot net | Date: | Sun, 23 Oct 2005 13:34:38 +0000 |
| Subject: | note 58074 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97458@lists.php.net to get a copy of this message | ||
Resetting CURLOPT_FILE to STDOUT won't work by calling curl_setopt() with the STDOUT constant
or a php://output stream handle (at least I get error messages when trying the code from phpnet at
andywaite dot com). Instead, one can simply reset it as a side effect of CURLOPT_RETURNTRANSFER.
Just say
curl_setopt($this->curl,CURLOPT_RETURNTRANSFER,0);
and following calls to curl_exec() will output to STDOUT again.
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58074
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58074&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58074&report=yes
Search -- http://master.php.net/manage/user-notes.php