send code request to server