]> git.basschouten.com Git - openhab-addons.git/commitdiff
[http] add note on escaping URLs (#9924)
authorJ-N-K <J-N-K@users.noreply.github.com>
Sat, 23 Jan 2021 20:29:22 +0000 (21:29 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Jan 2021 20:29:22 +0000 (21:29 +0100)
* add note on escaping URLs

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
bundles/org.openhab.binding.http/README.md

index 677ddb035806cf95a9f79becc8555d88b38576d2..59dd0c5205fc3ce5080a3432bef6fcfcfd8fcb5c 100644 (file)
@@ -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.