Refactored RequestURL to be more general