StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1,
问题 I use Web api selef host: public class TestController : ApiController { [HttpPost] public void Testp([FromBody]string title) { Console.WriteLine("Post"); } } this is simple controller and this is my client: client.BaseAddress = new Uri("http://localhost:1010"); const string englishTitle = "TesteDelete"; var post = client.PostAsync("Test/Testp", new { title = englishTitle }, new JsonMediaTypeFormatter()); var result = post.Result; if (result.IsSuccessStatusCode) { } else { string content =