Extract headers from XMLHttpRequest.