Just a quick follow on that I have found the undocumented parameter key= that sets the password for the hotspot. I can now join a hotspot from OS/2. Thanks for the curl API, without which I could not succeed.