Clean up func_curl a bit.