read url method