Edit report at http://bugs.php.net/bug.php?id=54022&edit=1

 ID:                 54022
 Updated by:         ka...@php.net
 Reported by:        mtdowling at gmail dot com
 Summary:            Add support for curl_easy_reset
-Status:             Open
+Status:             Assigned
 Type:               Feature/Change Request
 Package:            cURL related
 Operating System:   Mac OS X
 PHP Version:        5.3.5
-Assigned To:        
+Assigned To:        kalle
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2011-02-15 04:57:36] mtdowling at gmail dot com

Description:
------------
It's difficult to use the same curl handle for multiple requests to the
same host and port when many unknown options could have been applied to
the handle after its creation.  Many of the curl_setopt options can be
removed from a handle using some careful option setting, but some
options cannot.  Adding a curl_easy_reset method to the PHP bindings
would allow PHP developers to more easily implement connection pooling
and utilize keep-alive sessions over HTTP/1.1.



curl_easy_reset has been available since version 7.12.1
(http://curl.haxx.se/libcurl/c/curl_easy_reset.html):



Re-initializes all options previously set on a specified CURL handle to
the default values. This puts back the handle to the same state as it
was in when it was just created with curl_easy_init(3).



It does not change the following information kept in the handle: live
connections, the Session ID cache, the DNS cache, the cookies and
shares.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54022&edit=1

Reply via email to