mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 13:22:05 +07:00
First commit
This commit is contained in:
10
public/test-api.php
Normal file
10
public/test-api.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?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";
|
||||
Reference in New Issue
Block a user