About 496,000 results
Open links in new tab
  1. c# - Send HTTP POST request in .NET - Stack Overflow

    How can I make an HTTP POST request and send data in the body?

  2. Creating POST method in Web API - Stack Overflow

    I'm developing a web service, using WEB .API. I'm following the example, which include: public HttpResponseMessage PostProduct(Product item) { item = repository.Add(item); var response = R...

  3. c# - How do I pass an object to HttpClient.PostAsync and serialize as a ...

    A simple solution is to use Microsoft ASP.NET Web API 2.2 Client from NuGet. Then you can simply do this and it'll serialize the object to JSON and set the Content-Type header to application/json; …

  4. .net - WebAPI Multiple Put/Post parameters - Stack Overflow

    Jan 19, 2013 · To use it: 1) Download the code in the Source folder and add it to your Web API project or any other project in the solution. 2) Use attribute [MultiPostParameters] on the action methods that …

  5. .NET HttpClient. How to POST string value? - Stack Overflow

    How can I create using C# and HttpClient the following POST request: I need such a request for my WEB API service: [ActionName("exist")] [HttpPost] public bool CheckIfUserExist([FromBody] string l...

  6. C# Web API Sending Body Data in HTTP Post REST Client

    May 22, 2018 · C# Web API Sending Body Data in HTTP Post REST Client Asked 7 years, 5 months ago Modified 4 years, 5 months ago Viewed 90k times

  7. javascript - POST Request with Fetch API? - Stack Overflow

    Sep 19, 2016 · Here is a complete example: After spending hours tinkering with incomplete code snippets I finally managed to post some json from javascript, pick it up using php on a server, added …

  8. c# - FromBody string parameter is giving null - Stack Overflow

    Nov 29, 2016 · 67 Parameter Binding in ASP.NET Web API Using [FromBody] To force Web API to read a simple type from the request body, add the [FromBody] attribute to the parameter:

  9. Invoke-WebRequest, POST with parameters - Stack Overflow

    Dec 19, 2019 · 134 For some picky web services, the request needs to have the content type set to JSON and the body to be a JSON string. For example:

  10. How to set up a Web API controller for multipart/form-data

    The above code will stay in your Web API Controller that accepts multipart/form-data. Once the code verifies its a multipart content we get the file and extra data like "companyname", ... and you can …