- Katılım
- Haz 16, 2023
- Mesajlar
- 2,100
- Etkileşim
- 4
- Puan
- 38
- Konum
- Ananın ami
- Web sitesi
- t.me
- F-D Coin
- 66
PHP:
<?php
$id = $_GET['id'];
$data = array(
'input' => $id
);
$apiUrl = 'https://lookupguru.herokuapp.com/lookup';
$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
// Başlık bilgilerini ayarlayın
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json', // JSON verisi gönderdiğimizi belirtiyoruz
'Accept: application/json', // JSON yanıt beklediğimizi belirtiyoruz
'Accept-Encoding: gzip, deflate, br',
'Accept-Language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7',
'Access-Control-Allow-Credentials: true',
'Connection: keep-alive',
'Dnt: 1',
'Host: lookupguru.herokuapp.com',
'Origin: https://lookup.guru',
'Referer: https://lookupguru.herokuapp.com/',
'Sec-Ch-Ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"',
'Sec-Ch-Ua-Mobile: ?0',
'Sec-Ch-Ua-Platform: "Windows"',
'Sec-Fetch-Dest: empty',
'Sec-Fetch-Mode: cors',
'Sec-Fetch-Site: cross-site',
'Sec-Gpc: 1',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
));
$response = curl_exec($ch);
if ($response !== false) {
header('Content-Type: application/json; charset=utf-8');
echo $response;
} else {
echo json_encode(['error' => 'POST isteği başarısız.']);
}
curl_close($ch);
?>