How to Encode a URL for sendHttpGetRequest?

Basic question that I’m sure others have had …

Im using jython scripting and the HTTP module to use sendHttpGetRequest … is there an easy way to do an URLencode? i.e. what’s the preferred OpenHab way to encode a URL?

I’m manually encoding it which works but I need a general solution.

Thanks!

python/jython overs the possibility to use the function urlencode.
E.g. see at

1 Like

Thanks Wolfgang … turns out what I really only needed urllib.quote_plus … that did the trick. Thank you!

1 Like