The open() method of XMLHttpRequest only initializes the request parameters (method, URL, async flag). The actual data is sent using the send() method. For POST requests, you call open('POST', url) first, then send(data). The open() method does not send the POST data itself.