From 9203603f2a0265a3c67393d06a0559b4d6d57ef6 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Sat, 23 Jan 2021 21:29:22 +0100 Subject: [PATCH] [http] add note on escaping URLs (#9924) * add note on escaping URLs Signed-off-by: Jan N. Klug --- bundles/org.openhab.binding.http/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/org.openhab.binding.http/README.md b/bundles/org.openhab.binding.http/README.md index 677ddb035..59dd0c520 100644 --- a/bundles/org.openhab.binding.http/README.md +++ b/bundles/org.openhab.binding.http/README.md @@ -34,6 +34,10 @@ Authentication might fail if redirections are involved as headers are stripper p *Note:* If you rate-limit requests by using the `delay` parameter you have to make sure that the time between two refreshes is larger than the time needed for one refresh cycle. +**Attention:** `baseUrl` (and `stateExtension`/`commandExtension`) should not use escaping (e.g. `%22` instead of `"` or `%2c` instead of `,`). +URLs are properly escaped by the binding itself before the request is sent. +Using escaped strings in URL parameters may lead to problems with the formatting (see below). + ## Channels Each item type has its own channel-type.