title: How to use xmlhttprequest or xhr2 with k6
body: <p>I want to use the libraries xmlhttprequest or xhr2 with K6 performance testing tool.</p>
  <p>As k6 does not support the node module, I am getting the below error</p>
  <pre><code>GoError: Module specifier &quot;xhr2&quot; was tried to be loaded as remote module by prepending &quot;https://&quot; to it, which didn't work. If you are trying to import a nodejs module, this is not supported as k6 is _not_ nodejs based. Please read https://k6.io/docs/using-k6/modules for more information. Remote resolution error: &quot;Get &quot;https://xhr2&quot;: dial tcp: lookup xhr2: no such host&quot; at reflect.methodValueCall (native)
  </code></pre>
  <p>Is there a way i can download these library locally and use them. Appreciate your help.</p>