add literalinclude for curlrequest -> debug

This commit is contained in:
Toto Prayogo 2022-04-08 20:34:42 +07:00
parent 957656faf0
commit 3fc0c6b61b
No known key found for this signature in database
GPG Key ID: B3756EF30750508A
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -0,0 +1,3 @@
<?php
$response->request('GET', 'http://example.com', ['debug' => true]);