Updated the framework to handle XMLHttpRequest for request and response