About 2,520,000 results
Open links in new tab
  1. c# - 405 method not allowed Web API - Stack Overflow

    Mar 30, 2013 · Explore solutions for resolving the "405 Method Not Allowed" error in Web API, including troubleshooting tips and common causes of this issue.

  2. c# - How to extract custom header value in Web API message handler ...

    May 24, 2017 · How to extract custom header value in Web API message handler? Asked 12 years, 10 months ago Modified 3 years, 1 month ago Viewed 314k times

  3. c# - ASP.NET Core 8 Web API : how to add versioning? - Stack Overflow

    Nov 22, 2023 · I'm creating a new ASP.NET Core 8 Web API. In my previous projects with .NET 6 or .NET 7, I can use:

  4. c# - Post byte array to Web API server using HttpClient - Stack Overflow

    Aug 24, 2015 · Post byte array to Web API server using HttpClient Asked 10 years, 4 months ago Modified 1 year, 4 months ago Viewed 131k times

  5. How to return HTTP 500 from ASP.NET Core RC2 Web Api?

    Jun 13, 2016 · How to return HTTP 500 from ASP.NET Core RC2 Web Api? Asked 9 years, 6 months ago Modified 2 years, 1 month ago Viewed 474k times

  6. c# - Best practice to return errors in ASP.NET Web API - Stack Overflow

    May 24, 2012 · 33 If you are using ASP.NET Web API 2, the easiest way is to use the ApiController Short-Method. This will result in a BadRequestResult.

  7. How to add custom header to ASP.NET Core Web API response

    I am porting my API from Web API 2 to ASP.NET Core Web API. I used to be able to add a custom header in the following manner: HttpResponseMessage response = new HttpResponseMessage …

  8. c# - JWT authentication for ASP.NET Web API - Stack Overflow

    Oct 27, 2016 · I'm trying to support JWT bearer token (JSON Web Token) in my web API application and I'm getting lost. I see support for .NET Core and for OWIN applications. I'm currently hosting my …

  9. c# - How to return a file using Web API? - Stack Overflow

    I am using ASP.NET Web API. I want to download a PDF with C# from the API (that the API generates). Can I just have the API return a byte[]? and for the C# application can I just do: byte[] pdf =

  10. c# - POSTing JsonObject With HttpClient From Web API - Stack Overflow

    POSTing JsonObject With HttpClient From Web API Asked 14 years, 7 months ago Modified 10 months ago Viewed 672k times