using net/http now instead of curl