From 018a387e547a15f3c67965a34cedb8c85d74343e Mon Sep 17 00:00:00 2001 From: "fred.boniface" Date: Mon, 19 Sep 2022 19:57:36 +0100 Subject: [PATCH] without json_encode didnt work --- php/submitIssue-cli-test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/submitIssue-cli-test.php b/php/submitIssue-cli-test.php index 8d5574b..418d8ea 100644 --- a/php/submitIssue-cli-test.php +++ b/php/submitIssue-cli-test.php @@ -30,7 +30,7 @@ // Prepare CURL $curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues'); - curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $rawData); + curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $issueData); curl_setopt($curlConnection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curlConnection, CURLOPT_HTTPHEADER, $httpHeaders);