Dec-23-2025, 01:54 PM
Hello everyone,
As the title says, none of the post values are being sent
Here is the Python script:
Does anyone know what I am doing wrong?
As the title says, none of the post values are being sent
Here is the Python script:
params = { 'code' : code, 'client_id': client_id, 'client_secret': client_secret, 'redirect_uri': redirect_uri, 'grant_type': 'authorization_code', } headers = { 'content-type': 'application/x-www-form-urlencoded' } response = requests.post(testurl+"?test=1", headers=headers, json = params) print(response.text) print(dir(response))Here is the php code of the site receiving it<?php $r = var_export($_POST, true); print_r(json_encode($r)); ?>all I get back is "Array()"
Does anyone know what I am doing wrong?
