Proxy and Requester enhancements. Proxy got a good performance improvement, it's now multi-thread, able to handle errors, can be used with a normal browser. Requester core (ruby/js) has been enhanced too: db model, js logic and parsing code. Many previous bugs in different parts have been corrected.

git-svn-id: https://beef.googlecode.com/svn/trunk@1027 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
antisnatchor
2011-06-26 18:03:53 +00:00
parent a8c833fcfd
commit 6af4f673d3
14 changed files with 233 additions and 190 deletions

View File

@@ -15,10 +15,16 @@ beef.net.requester = {
send: function(requests_array) {
for (i in requests_array) {
request = requests_array[i];
beef.net.request('http', request.method, request.host, request.port, request.uri, null, null, 10, 'HTML', function(res) { beef.net.send('/requester', request.id, res.response_body); });
beef.net.proxyrequest('http', request.method, request.host, request.port,
request.uri, null, null, 10, null, request.id,
function(res, requestid) { beef.net.send('/requester', requestid, {
response_data:res.response_body,
response_status_code: res.status_code,
response_status_text: res.status_text});
}
);
}
}
}
};
beef.regCmp('beef.net.requester');
beef.regCmp('beef.net.requester');