add function to read contents of a url (same as view source)