             else if let v = value as? [AnyObject] {
                 for subValue in v {
                     let escapedFormat = CFURLCreateStringByAddingPercentEscapes(nil, subValue.description, nil, "!*'();:@&=+$,/?%#[]", CFStringBuiltInEncodings.UTF8.rawValue)
-                    pairs.append("\(key)[]=\(escapedFormat)")
+                    if arrayEncodingStrategy == ArrayEncodingStrategy.MultiParam {
+                        pairs.append( "\(key)=\(escapedFormat)")
+                    }
+                    else {
+                        pairs.append("\(key)[]=\(escapedFormat)")
+                    }
                 }
             }
             else {

        return str
    }
    
    public class func asParams(params: Dictionary<String, AnyObject>) -> NSData {
        return asParamsStr(params).dataUsingEncoding(NSUTF8StringEncoding)!
    }
    
    public class func delete(url:String, body: NSData = emptyBody, headers: Dictionary<String, AnyObject> = [:]) -> Future<RequestResponse> {

    
}


public enum ArrayEncodingStrategy {
    
    case PHP
    case MultiParam
}

public enum RequestMethod : String {
    
    case POST = "POST"
