Bir script yaptım ve geliştirmeye çalışıyorum.
Elimde şöyle bir kod var
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://bunny.net/pullzone/12345/edgerules/addOrUpdate');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"ActionType\":1,\"ActionParameter1\":\"https://example.com\",\"ActionParameter2\":\"\",\"Triggers\":[{\"Type\":4,\"PatternMatchingType\":0,\"Parameter1\":\"\",\"PatternMatches\":[\"TR\"]}],\"TriggerMatchingType\":2,\"Enabled\":true}");
$headers = array();
$headers[] = 'Accept: application/json';
$headers[] = 'AccessKey: xxxxxxxxxx';
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);Şimdi ben bir form oluşturmak istiyorumo form da 2 tane alan istiyorum alanın bir tanesine yazdığım veriyi yukarıdaki https://example.com olan yerdelki ile değiştirsin istiyorum.
2. alana yazdığım veriyide 12345 olan yere eşitleeyip post ettirmek istiyorum. yardımlarınızı bekliyorum teşekkürler.