Getting curl requests to work with a proxy