added patched curl client