Revert "Use curl"

This reverts commit b67a4e5543debe2da30922b4341a5d3907e003d5.