so nun aber richtig
This commit is contained in:
parent
b689d73065
commit
2e5b29bd9d
@ -1,11 +1,12 @@
|
||||
<?php
|
||||
function sendToTroy($data) {
|
||||
$url = 'https://troy-grunt.de/api.php';
|
||||
// use key 'http' even if you send the request to https://...
|
||||
$options = array (
|
||||
'http' => array (
|
||||
'method' => 'POST',
|
||||
'Content-Type' => 'application/json',
|
||||
'header' => array (
|
||||
'Content-Type: application/json'
|
||||
),
|
||||
'content' => json_encode ( $data )
|
||||
)
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user