I have a PHP script which in theory should send some parameters to a Node.js/Express Javascript bot running on glitch (I know it is not the best option but it is not the problem).
<?php
$URL = curl_init('XXXXXXXXXXXXXXXXXXXXXX.glitch.me/bot?say=1');
curl_setopt($URL, CURLOPT_POST, 1);
echo curl_exec($URL);
curl_close($URL);
?>
When I try to run the code, which is hosted on a website, it does nothing and I get the 400 Bad Request error. Can someone help?
EDIT: https://testforwebsite21324141.000webhostapp.com/ is the website with the php running. It does not send anything to my bot, when it is running and working. There are also no errors in the logs.