i need to send this file path /Users/bob/Documents/python_stuff/venv/json_output.json
to the php page of http://localhost:8888/demo/display_data.php
My python code:
url = 'http://localhost:8888/demo/display_data.php'
file_path_json = {"1": "/Users/bob/Documents/python_stuff/venv/json_output.json"}
resp = requests.post(url, params=file_path_json)
php code:
$json_path['1'] = $_GET['1'];
I do not know why it is not working. I have installed the requests module.