mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 21:32:08 +07:00
11 lines
321 B
PHP
11 lines
321 B
PHP
<?php
|
|
$url = 'http://localhost:8000/api/public/legal-pages/privacy-policy';
|
|
$ch = curl_init($url);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
$response = curl_exec($ch);
|
|
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
|
curl_close($ch);
|
|
|
|
echo "HTTP Code: " . $httpCode . "\n";
|
|
echo "Response: " . $response . "\n";
|