support curl in AsyncHTTPClient

and ensure user-agent is set