var makeRequest = function() { var url = new java.net.URL(this.url); var connection = url.openConnection();  for(header in this.headers) connection.addRequestProperty(header, this.headers[header]); connection.connect();  for(i=0;;i++) { headerName = connection.getHeaderFieldKey(i); headerValue = connection.getHeaderField(i); if(!headerName && !headerValue) break; if(headerName) this.responseHeaders[headerName] = headerValue; } this.readyState = 4; this.status = parseInt(connection.responseCode); this.statusText = connection.responseMessage; var stream = new java.io.InputStreamReader(connection.getInputStream()); var buffer = new java.io.BufferedReader(stream); var line; while((line = buffer.readLine()) != null) this.responseText += line; try { this.responseXML = new DOMDocument(this.responseText); } catch(e) { this.responseXML = null; } this.onreadystatechange(); }; if(this.async) { var requestThread = (new java.lang.Thread(new java.lang.Runnable({ run: makeRequest }))); requestThread.start(); } else makeRequest(); 
function makeRequest(){ var url = new java.net.URL(this.url), connection = url.openConnection();   for (var header in this.headers) connection.addRequestProperty(header, this.headers[header]);  connection.connect();   for (i=0; ; i++) { var headerName = connection.getHeaderFieldKey(i); var headerValue = connection.getHeaderField(i); if (!headerName && !headerValue) break; if (headerName) this.responseHeaders[headerName] = headerValue; }  this.readyState = 4; this.status = parseInt(connection.responseCode); this.statusText = connection.responseMessage;  var stream = new java.io.InputStreamReader( connection.getInputStream()), buffer = new java.io.BufferedReader(stream), line;  while ((line = buffer.readLine()) != null) this.responseText += line;  try { this.responseXML = new DOMDocument(this.responseText); } catch(e) { this.responseXML = null; }  this.onreadystatechange(); }  if (this.async) (new java.lang.Thread(new java.lang.Runnable({ run: makeRequest }))).start(); else makeRequest(); 
		send: function(data){		  var makeRequest = function() {		    var url = new java.net.URL(this.url);		    var connection = url.openConnection();		    // Add headers to Java connection		    for(header in this.headers) connection.addRequestProperty(header, this.headers[header]);		    connection.connect();		    // Stick the response headers into responseHeaders		    for(i=0;;i++) { 		      headerName = connection.getHeaderFieldKey(i); 		      headerValue = connection.getHeaderField(i); 		      if(!headerName && !headerValue) break; 		      if(headerName) this.responseHeaders[headerName] = headerValue;		    }	      this.readyState = 4;        this.status = parseInt(connection.responseCode);        this.statusText = connection.responseMessage;        var stream = new java.io.InputStreamReader(connection.getInputStream());        var buffer = new java.io.BufferedReader(stream);        var line;        while((line = buffer.readLine()) != null) this.responseText += line;        try {          this.responseXML = new DOMDocument(this.responseText);        } catch(e) {          this.responseXML = null;        }        this.onreadystatechange();		  };		  if(this.async) {  		  var requestThread = (new java.lang.Thread(new java.lang.Runnable({  		    run: makeRequest  		  })));  		  requestThread.start();		  }  		else makeRequest();		},
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/de71a046e619884292b122ddcf1401ad9932a5c7/env.js/buggy/build/runtest/env.js