
var URLCache = { };

CFHTTPRequest.prototype.open = function(/*String*/ method, /*String*/ url, /*Boolean*/ async, /*String*/ user, /*String*/ password)
{
    var cachedRequest = CFHTTPRequest._lookupCachedRequest(url);
    if (cachedRequest)
    {
        var self = this;
        this._nativeRequest = cachedRequest;
        this._nativeRequest.onreadystatechange = function()
        {
            ObjectiveJ.determineAndDispatchHTTPRequestEvents(self);
        };
    }
    return this._nativeRequest.open(method, url, async, user, password);
}

CFHTTPRequest._cacheRequest = function(/*CFURL|String*/ aURL, /*Number*/ status, /*Object*/ headers, /*String*/ body)
{
    URLCache[aURL] = new MockXMLHttpRequest(status, headers, body);
}

CFHTTPRequest._lookupCachedRequest = function(/*CFURL|String*/ aURL)
{
    return URLCache[aURL];
}

function MockXMLHttpRequest(status, headers, body)
{
    this.readyState         = CFHTTPRequest.UninitializedState;
    this.status             = status || 200;
    this.statusText         = "";
    this.responseText       = body || "";
    this._responseHeaders   = headers || {};
};
MockXMLHttpRequest.prototype.open = function(method, url, async, user, password)
{
    this.readyState = CFHTTPRequest.LoadingState;
    this.async = async;
};
MockXMLHttpRequest.prototype.send = function(body)
{
    var self = this;
    self.responseText = self.responseText.toString();
    function complete() {
        for (self.readyState = CFHTTPRequest.LoadedState; self.readyState <= CFHTTPRequest.CompleteState; self.readyState++)
            self.onreadystatechange();
    }
    (self.async ? ObjectiveJ.Asynchronous(complete) : complete)();
};
MockXMLHttpRequest.prototype.onreadystatechange       = function() {};
MockXMLHttpRequest.prototype.abort                    = function() {};
MockXMLHttpRequest.prototype.setRequestHeader         = function(header, value) {};
MockXMLHttpRequest.prototype.getAllResponseHeaders    = function() { return this._responseHeaders; };
MockXMLHttpRequest.prototype.getResponseHeader        = function(header) { return this._responseHeaders[header]; };
MockXMLHttpRequest.prototype.overrideMimeType         = function(mimetype) {};

@@ -15,16 +15,71 @@
 = %7B %7D;%0A%0A
+var CFHTTPRequest_open = CFHTTPRequest.prototype.open;%0A
 CFHTTPRe
@@ -538,67 +538,48 @@
 urn 
-this._native
+CFHTTP
 Request
-.
+_
 open
-(method, url, async, user, password
+.apply(this, arguments
 );%0A%7D

Fix press/flatten due to changes to CFHTTPRequest.