First, please use the code fences
I know it is not documented but have you tried:
stvRequest = "https://user:pwd@home.myopenhab.org:443/rest/items/switch"
sendHttpPostRequest(stvRequest, "text/plain", "ON", 5000)
PS: I have not idea if it will work or not…