Use curl with local proxy