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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,10 @@ a Response instance to you. This takes the HTTP method, the url and an array of
83
83
84
84
.. literalinclude:: curlrequest/005.php
85
85
86
+
.. important:: By default, CURLRequest will throw ``HTTPException`` if the HTTP
87
+
code returned is greater than or equal to 400. If you want to get the response,
88
+
see the `http_errors`_ option.
89
+
86
90
.. note:: When ``$shareOptions`` is false, the options passed to the method will be used for the request. After sending the request, they will be cleared. If you want to use the options to all requests, pass the options in the constructor.
87
91
88
92
Since the response is an instance of ``CodeIgniter\HTTP\Response`` you have all of the normal information
0 commit comments