function handle_post(req, callback){
	var body = '';
	req.on('data', function (data){
		body += data;
		if (body.length > 1e8)
			req.connection.destroy();
	});
	req.on('end', function (data){
		var post = body;
		try{
			post = JSON.parse(post);
		}
		catch(e){
			try{
				post = qs.parse(post);
			}
			catch(e){}
		}
		callback(post);
	});
}
//	Handler for multipart POST request/response body
Handler for multipart POST request/response body
Handler for multipart POST request / response body
function handle_post(req, callback){
	var body = '';
	req.on('data', function (data){
		body += data;
		if (body.length > 1e8)
			req.connection.destroy();
	});
	req.on('end', function (data){
		var post = body;
		try{
			post = JSON.parse(post);
		}
		catch(e){
			try{
				post = qs.parse(post);
			}
			catch(e){}
		}
		callback(post);
	});
}
function handle_post ( req , callback ) { var body = '' ; req . on ( 'data' , function ( data ) { body += data ; if ( body . length > 1e8 ) req . connection . destroy ( ) ; } ) ; req . on ( 'end' , function ( data ) { var post = body ; try { post = JSON . parse ( post ) ; } catch ( e ) { try { post = qs . parse ( post ) ; } catch ( e ) { } } callback ( post ) ; } ) ; }
Handler for multipart POST request/response body
Handler for multipart POST request / response body