I can see that BLOBs can be sent in the following form:
function sendArrayBuffer()
{
var xhr = new XMLHttpRequest();
xhr.open('POST', '/server', true);
xhr.onload = function(e) { ... };
var uInt8Array = new Uint8Array([1, 2, 3]);
xhr.send(uInt8Array.buffer);
}
My question is: how do we send a username and password in the same request?