mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
add literalinclude
for curlrequest -> debug
This commit is contained in:
parent
957656faf0
commit
3fc0c6b61b
@ -219,7 +219,7 @@ script execution. This is done by passing CURLOPT_VERBOSE and echoing the output
|
||||
server via ``spark serve`` you will see the output in the console. Otherwise, the output will be written to
|
||||
the server's error log.
|
||||
|
||||
$response->request('GET', 'http://example.com', ['debug' => true]);
|
||||
.. literalinclude:: curlrequest/034.php
|
||||
|
||||
You can pass a filename as the value for debug to have the output written to a file:
|
||||
|
||||
|
3
user_guide_src/source/libraries/curlrequest/034.php
Normal file
3
user_guide_src/source/libraries/curlrequest/034.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$response->request('GET', 'http://example.com', ['debug' => true]);
|
Loading…
x
Reference in New Issue
Block a user