【问题标题】:How to pass values to string array in post method using Fiddler?如何使用 Fiddler 在 post 方法中将值传递给字符串数组?
【发布时间】:2014-12-26 08:35:59
【问题描述】:

当我像{"rajehs","ramesh","ramsgkfhh"} 这样在 Fiddler 中传递值时,我会在 [0] 位置获取所有值。我也尝试过使用 = {"rajehs","ramesh","ramsgkfhh"}

我声明了这样的方法:

    public void Post([FromBody]string[] value)
    {

    }

【问题讨论】:

    标签: c# web-services rest post fiddler


    【解决方案1】:

    您在我们的正文中传递一个 JSON 对象,而不是一个数组。使用[] 传递一个 JSON 数组:

    ["rajehs","ramesh","ramsgkfhh"]
    

    【讨论】:

    • 刚刚得到它,,,,感谢您的快速响应
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-28
    • 1970-01-01
    相关资源
    最近更新 更多