title: XML HTTP RESPONSE ISSUE : XML Parsing Error: no element found Location: moz-nullprincipal
body: <p>Following is the Java Script code i have.</p>
  
  <pre><code>//URL = http://dev.stage.com/restapi/vc/auth/sessions/login/
  //parametersURL = user.login=******&amp;user.password=******
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlHttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  
  xmlHttp.open( "POST", URL, true );
  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  xmlHttp.setRequestHeader("Content-length", parametersURL.length);
  xmlHttp.setRequestHeader("Connection", "close");
  xmlHttp.send(parametersURL);
  xmlHttp.onreadystatechange = function() {//Call a function when the state changes.
  if(xmlHttp.readyState == 4 &amp;&amp; xmlHttp.status == 200) {
          alert(xmlHttp.responseText);
          return xmlHttp.responseXML;
      }
  }
  </code></pre>
  
  <p>When tested in IE8, i am getting the correct response in the alert box.</p>
  
  <pre><code>&lt;response status="success"&gt;&lt;value type="string"&gt;
  uX-DjjZ2XrSB_GAfjSLTapOJvyvd2U9Y8MHsQzrvFeo.&lt;/value&gt;&lt;/response&gt;
  </code></pre>
  
  <p>But when tested in Chrome and Firefox. The response is empty. When checked with FireBug the response is empty and in the XML I get the following error </p>
  
  <pre><code>XML Parsing Error: no element found Location: moz-nullprincipal:{9fc08684-36c5-42b2-
  b641-e9400c6e627f} Line Number 1, Column 1:
  </code></pre>
  
  <p>Using Poster plugin in Firefox i can get the correct response.</p>
  
  <p>Please, let me know what is the issue</p>