How to use POST method in XMLHttpRequest

This code is how to use POST method in XMLHttpRequest.