You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/curlrequest.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,21 @@ to change very little to move over to use Guzzle.
23
23
Config for CURLRequest
24
24
**********************
25
25
26
+
.. _curlrequest-sharing-connection:
27
+
28
+
Sharing Connection
29
+
==================
30
+
31
+
.. versionadded:: 4.7.0
32
+
33
+
If you want to share connection between requests, set ``$shareConnection`` with array constant `CURL_LOCK_DATA_* <https://www.php.net/manual/en/curl.constants.php#constant.curl-lock-data-connect>`_ in **app/Config/CURLRequest.php**:
34
+
35
+
.. literalinclude:: curlrequest/039.php
36
+
37
+
or when you want to disable it, just change to empty array:
0 commit comments