Use curl for OSX compatibility.