             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 {

        }
    }

    public class func asParamsStr(params: Dictionary<String, AnyObject>) -> String {
        var pairs:[String] = []
        for (key, value) in params {
            if let v = value as? Dictionary<String, AnyObject> {

    
}


public enum ArrayEncodingStrategy {
    
    case PHP
    case MultiParam
}

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