ID: 47204 User updated by: a...@php.net Reported By: a...@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] a...@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] s...@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] srina...@php.net since, this is a feature, this will probably apply only for 5.3 onwards. ------------------------------------------------------------------------ [2009-09-20 17:31:31] j...@php.net Recategorized, this is not a bug. ------------------------------------------------------------------------ [2009-09-20 08:47:21] a...@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