#47204 [Opn]: Missing support for CURLOPT_IOCTLFUNCTION
| From: | avb@php.net | Date: | Sat, 14 Nov 2009 16:02:10 +0000 |
| Subject: | #47204 [Opn]: Missing support for CURLOPT_IOCTLFUNCTION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144612@lists.php.net to get a copy of this message | ||
ID: 47204
User updated by: avb@php.net
Reported By: avb@php.net
Status: Open
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5.3
Assigned To: srinatar
New Comment:
...also note that while this problem can be worked around by using
CURLOPT_POSTFIELDS with POST request, other request methods (e.g. PUT)
only allow using CURLOPT_INFILE as request body.
Previous Comments:
------------------------------------------------------------------------
[2009-11-14 15:39:32] avb@php.net
While adding PHP-side support for CURLOPT_IOCTLFUNCTION is indeed a
feature request, complete inability for curl extension to handle
redirects / digest authentication when using CURLOPT_INFILE
(CURLOPT_READDATA) looks like a genuine bug to me.
The problem lies with Curl extension registering a custom callback
curl_read() as CURLOPT_READFUNCTION (it handles both reading from a
stream provided as CURLOPT_INFILE and calling PHP callback provided as
CURLOPT_READFUNCTION) but failing to implement custom callback for
rewinding the data, at least for the case when stream is used.
------------------------------------------------------------------------
[2009-11-11 20:09:43] svn@php.net
Automatic comment from SVN on behalf of avb
Revision: http://svn.php.net/viewvc/?view=revision&revision=290520
Log: Enabled redirect support in Curl adapter.
Doesn't work *at all* with POST due to PHP bug #47204, workaround
needed.
------------------------------------------------------------------------
[2009-09-24 19:26:54] srinatar@php.net
since, this is a feature, this will probably apply only for 5.3
onwards.
------------------------------------------------------------------------
[2009-09-20 17:31:31] jani@php.net
Recategorized, this is not a bug.
------------------------------------------------------------------------
[2009-09-20 08:47:21] avb@php.net
Marking this as "cURL related" to increase visibility.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/47204
--
Edit this bug report at http://bugs.php.net/?id=47204&edit=1