Web services 使用post httpClient发送数组字符串

Web services 使用post httpClient发送数组字符串,web-services,ionic-framework,http-post,httpclient,arrayobject,Web Services,Ionic Framework,Http Post,Httpclient,Arrayobject,我想发送参数并接收另一个参数,我的方法遇到了一个问题,无法在ionic中使用HttpClient的post方法发送这些参数(字符串数组和字符串) 错误(不是CORS安全性问题,因为我也使用我的设备运行,并且遇到了相同的问题): 我的爱奥尼亚代码: var apiURL = 'http://localhost:64411/'; pathGetLabels: string = apiURL + 'getLabels'; constructor(public http: HttpClient, pu

我想发送参数并接收另一个参数,我的方法遇到了一个问题,无法在ionic中使用HttpClient的post方法发送这些参数(字符串数组和字符串)

错误(不是CORS安全性问题,因为我也使用我的设备运行,并且遇到了相同的问题):

我的爱奥尼亚代码:

var apiURL = 'http://localhost:64411/';
pathGetLabels: string = apiURL + 'getLabels';

constructor(public http: HttpClient, public material: MaterialProvider, public hp : Http) {
     }
loadLabels(lbls: any){
        return this.http.post(this.pathGetLabels, lbls ,Language);}
阵列没有问题,这是:

Array(6)
0: "USER"
1: "Password"
2: "SaveAccount"
3: "lbl_login"
4: "ForgetPass"
5: "Register"
length: 6
以及Web服务Api Rest的代码:

[Route("getLabels/{paramOne}/{paramTwo}")]
        public HttpResponseMessage getLabels([FromBody]string[] paramOne, string idL)
        {
            var labels = LanguagesRepository.GetLabels(paramOne, idL);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, labels);

            return response;
        }
我试着做这些事情,但我遇到了同样的问题:

return this.http.get(this.pathGetLabels+ JSON.stringify(lbls) +"/"+Language);
return this.http.get(this.pathGetLabels+ JSON.stringify(lbls), Language);
return this.http.get(this.pathGetLabels+ JSON.stringify(lbls) +"/"+Language);
return this.http.get(this.pathGetLabels+ JSON.stringify(lbls), Language);