using curl to avoid downloading entire page