Swift3 I';我正试图用Alamofire 4.0&;发送POST请求;Swift 3,但服务器接收GET参数

Swift3 I';我正试图用Alamofire 4.0&;发送POST请求;Swift 3,但服务器接收GET参数,swift3,alamofire,http-method,urlrequest,Swift3,Alamofire,Http Method,Urlrequest,我试图发出一个请求,通过POST发送参数,Alamofire请求表示它的POST,但我的服务器通过get获取参数 let formParams:[String : String] = ["facebook_id": COUtils.userProfile["id"]!, "full_name": name, "email": mail, "phone": phone , "state": state, "device_id": UIDevice.current.identifierFor

我试图发出一个请求,通过POST发送参数,Alamofire请求表示它的POST,但我的服务器通过get获取参数

    let formParams:[String : String] = ["facebook_id": COUtils.userProfile["id"]!, "full_name": name, "email": mail, "phone": phone , "state": state, "device_id": UIDevice.current.identifierForVendor!.uuidString, "device_type": "ios"]
    let headers = [
        "Accept" : "application/json",
        "Content-Type" : "application/x-www-form-urlencoded",
        "Authorization": COUtils.autorizationBearer
    ]
    print(COUrls.apiUrl + COUrls.register, formParams)
    Alamofire.request(COUrls.apiUrl + COUrls.register, method: HTTPMethod.post, parameters: formParams, encoding: URLEncoding.httpBody, headers: headers).responseJSON { response in
        print(response.response?.allHeaderFields ?? "")
提前谢谢