http: use curl's tcp keepalive if available