use php curl to fetch http head.