write user-agent