php bilmiyorum ama genel olarak post methodunda data headers cookie proxy gibi değerler verirsiniz bu değerler sayesinde postunuz özelleşir gpt ye bir kod yazdırdım umarım işinize yarar

<?php
// Hedef URL
$url = 'https://example.com/api';

// POST verileri
$data = array(
    'param1' => 'value1',
    'param2' => 'value2'
);

// User-Agent değeri
$userAgent = 'MyCustomUserAgent/1.0';

// POST isteği yapmadan önce cURL ayarları
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'User-Agent: ' . $userAgent
));

// İsteği gerçekleştir
$response = curl_exec($ch);

// Hata kontrolü ve kapatma
if ($response === false) {
    echo 'cURL Hatası: ' . curl_error($ch);
} else {
    echo 'Yanıt: ' . $response;
}

curl_close($ch);
?>