Here my code:
<?php
$ipaddress = file_get_contents('https://ip.seeip.org/jsonip');
$decoded_json = json_decode($ipaddress, false);
$url = "https://maker.ifttt.com/trigger/new_search_result/with/key/REMOVED_";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{"value1":"' . htmlspecialchars($_GET["q"]) . '","value2":"' . echo $decoded_json->ip . '"}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
?>
Here’s my URL: yousearch.gq, I can’t search
Here my screenshot: