more fixes; extend httpsclient.py