fetch using curl.