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
{{ message }}
Repository navigation
Commit 4046b8d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/curlrequest.rst
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,23 @@ 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
+
By default, this option is enabled with the constants ``CURL_LOCK_DATA_CONNECT`` and ``CURL_LOCK_DATA_DNS``.
34
+
35
+
If you want to share connection between requests, set ``$shareConnectionOptions`` 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**:
36
+
37
+
.. literalinclude:: curlrequest/039.php
38
+
39
+
or when you want to disable it, just change to empty array:
0 commit comments