$body, 'title' => $subject, 'closed' => 'false' ); $issueData = json_encode($rawData); echo "Ready to send data:\n$issueData" // Prepare CURL $curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues'); curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $issueData); curl_setopt($curlConnection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curlConnection, CURLOPT_HTTPHEADER, $httpHeaders); // Get response and exit CURL $giteaResponse = curl_exec($curlConnection); curl_close($curlConnection); echo "Response: " . $giteaResponse; ?>