Using CURL to get HTTP/S Status Codes