1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

reuse handles in PHP/CURL works - Kirk Hedden told us

This commit is contained in:
Daniel Stenberg 2004-08-19 06:31:29 +00:00
parent 9ac7629e2c
commit ee400f9552

View File

@ -889,9 +889,9 @@ FAQ
7.3 Can I perform multiple requests using the same handle? 7.3 Can I perform multiple requests using the same handle?
With libcurl you can. With PHP/CURL you cannot. This is a limitation in the Yes - at least in PHP version 4.3.8 and later (this has been known to not
PHP/CURL code. Therefore, you need to close each handle after each request work in earlier versions, but the exact version when it started to work is
and create a new one for the following one. unknown to me).
I've heard rumours that this situation has been fixed in PHP5, but that is After a transfer, you just set new options in the handle and make another
unconfirmed. transfer. This will make libcurl to re-use the same connection if it can.