remote-curl: implement stateless-connect command