                     bodyData.appendData("\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
                 }
             }
-            //普通参数
-            else
-            {
-                bodyData.appendData("--\(self.boundary)\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
-                bodyData.appendData("Content-Disposition: form-data; name=\"\(key)\"\r\n\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
-                bodyData.appendData("\(value)\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
-            }
-        }
+        }
+        bodyData.appendData("--\(self.boundary)--".dataUsingEncoding(NSUTF8StringEncoding)!)
+        request.addValue(bodyData.length.description, forHTTPHeaderField: "Content-Length")
         request.HTTPBody = bodyData
         
         //异步请求

        //设置传输的内容体
        let bodyData = NSMutableData()
        let keys:NSArray=data.allKeys
        
        for i in 0 ..< keys.count
        {
            let key: AnyObject=keys.objectAtIndex(i)
            let value: AnyObject?=data.objectForKey(key)
            if(value == nil){continue}
            
            //图片类型数据
            if(value!.isKindOfClass(UIImage))

    // HTTP 头 开始 Content-Type: multipart/form-data; boundary=PitayaUGl0YXlh 
    // HTTP 头 结束 
    /* HTTP Body 开始
     格式示例：
     Content-type: multipart/form-data, boundary=AaB03x
     
     --AaB03x
     
     content-disposition: form-data; name="field1"
     
     Hello Boris!
     
     --AaB03x
     
     content-disposition: form-data; name="pic"; filename="boris.png"
     
     Content-Type: image/png
     
     ... contents of boris.png ...
     
     --AaB03x--
    // HTTP Body 结束*/
    private func upload(address:String,data:NSDictionary,callback:(data:NSData!,response:AnyObject!,error:NSError!) -> Void)
    {
