I send my data through get request from python to php website (it's on hosting) and it doesn't work. But when it's on localhost it works
Php:
<?php
$req_dump = print_r($_REQUEST, true);
$fp = file_put_contents('text.txt', $req_dump, FILE_APPEND);
?>
Python:
import requests
while True:
theWeight = input("Enter ")
r = requests.get('http://localhost:81/index.php', params={'weight': theWeight})
print(r.url)
I edit only this string for the site that's on hosting and it doesn't get the GET requests
r = requests.get('http://example.com/index.php', params={'weight': theWeight})