 			form: params
 			uri: "#{@ROOT_DATA}/#{url}"
 			(error, response, result) =>
-				if result?
+				if result? and @format is DEFAULT_FORMAT
 					if result.State? and result.State
 						scb result
 					else

		else
			url = "#{ressource}"

		if DEBUG_STATE
			console.log "#[+] EXEC #{method} -> #{@ROOT_DATA}/#{url}"

		request

request = require 'request'

DEFAULT_FORMAT = 'json'

module.exports = class Net_action
	
	constructor: (@ROOT_DATA, @DEBUG_STATE) ->
		unless @DEBUG_STATE
			@DEBUG_STATE = false
		
	get: ({ressource, params, @format, successCallback, errorCallback}) ->
		unless @format?
