Use XMLHttpRequest to send payload.