From 8b08cabd01c2c215ae5e1e3f116d5bf895738ebf Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 16 Oct 2024 13:57:25 +0200 Subject: [PATCH] Nur Id im Header mitgeben --- Belevo_Server_Kommunikation/module.php | 10 +++++++++- library.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index d9c7564..74bf29a 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -152,7 +152,7 @@ return $json; */ - +/* $options = [ 'http' => [ '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)); $context = stream_context_create($options); diff --git a/library.json b/library.json index a75a6b6..327c23c 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.46", + "version": "0.47", "build": 0, "date": 0 } \ No newline at end of file