Updated to use curl for the proxy