getURL method