parse the referer header