rest client with https example