new method to fetch from URL, with credentials support