Nur Id im Header mitgeben

This commit is contained in:
belevo\mh
2024-10-16 13:57:25 +02:00
parent 2b6d632656
commit 8b08cabd01
2 changed files with 10 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ return $json;
*/ */
/*
$options = [ $options = [
'http' => [ 'http' => [
'header' => "Content-Type: application/json\r\n". 'header' => "Content-Type: application/json\r\n".
@@ -162,6 +162,14 @@ return $json;
], ],
]; ];
*/
$options = [
'http' => [
'header' => "id: test\r\n",
'method' => 'POST',
],
];
IPS_LogMessage("Belevo_Server_Kommunikation", "Options: " . print_r($options, true)); IPS_LogMessage("Belevo_Server_Kommunikation", "Options: " . print_r($options, true));
$context = stream_context_create($options); $context = stream_context_create($options);

View File

@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.46", "version": "0.47",
"build": 0, "build": 0,
"date": 0 "date": 0
} }