fixed internet library's request function, now properly waiting for first response event to tell whether it was a success or not, and not throwing from within the actual iterator function