function processPost2(request, callback) {
var body = '';
request.on('data', function(data) {
body += data
});
request.on('end', callback);
return body;
}
processPost2(request, function() {
body = qs.parse(body); // string -> object
console.log(body);
});
request.on('end', function() {
body = qs.parse(body) // string -> object
console.log(body)
})
NSString *serverURL = @"host.ru";
[engine operationWithPath:@"/method" params:nil httpMethod:@"GET" ssl:YES];
operationWithPath:@"/"