Error sending json in POST to web API service

后端 未结 6 2089
醉梦人生
醉梦人生 2020-12-13 11:53

I\'m creating a web service using Web API. I implemented a simple class

public class ActivityResult
{
    public String code;
    public int indexValue;
             


        
6条回答
  •  没有蜡笔的小新
    2020-12-13 12:20

    In the HTTP request you need to set Content-Type to: Content-Type: application/json

    So if you're using fiddler client add Content-Type: application/json to the request header

提交回复
热议问题