Make requests to a server using XMLHttpRequest.