implemented GET request for opening files through path or url