mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-05 11:37:21 +00:00
Update homepage code example and use PrismJS for syntax highlighting
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$curl = new Curl();
|
||||
$curl->get('https://www.example.com/');
|
||||
|
||||
if ($curl->error) {
|
||||
echo 'Error: ' . $curl->errorMessage . "\n";
|
||||
$curl->diagnose();
|
||||
} else {
|
||||
echo 'Success! Here is the response:' . "\n";
|
||||
var_dump($curl->response);
|
||||
}
|
||||
Reference in New Issue
Block a user