From: J-N-K Date: Sat, 23 Jan 2021 20:29:22 +0000 (+0100) Subject: [http] add note on escaping URLs (#9924) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=9203603f2a0265a3c67393d06a0559b4d6d57ef6;p=openhab-addons.git [http] add note on escaping URLs (#9924) * add note on escaping URLs Signed-off-by: Jan N. Klug --- diff --git a/bundles/org.openhab.binding.http/README.md b/bundles/org.openhab.binding.http/README.md index 677ddb0358..59dd0c5205 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.