Use an external program to implement fetching with curl