getUrl utility script - use for detection