Top "Asp.net-web-api" questions

ASP.

How do I set a cookie on HttpClient's HttpRequestMessage

I am trying to use the web api's HttpClient to do a post to an endpoint that requires login in …

c# rest asp.net-mvc-4 asp.net-web-api
Effectively use async/await with ASP.NET Web API

I am trying to make use of the async/await feature of ASP.NET in my Web API project. I …

c# asp.net-mvc asp.net-web-api async-await
Multiple HttpPost method in Web API controller

I am starting to use MVC4 Web API project, I have controller with multiple HttpPost methods. The Controller looks like …

c# asp.net-web-api global-asax asp.net-web-api-routing
Where is HttpContent.ReadAsAsync?

I see in tons of examples on the web using the new HttpClient object (as part of the new Web …

c# .net asp.net-web-api httpcontent
Web API Put Request generates an Http 405 Method Not Allowed error

Here's the call to the PUT method on my Web API - the third line in the method (I am …

c# asp.net-mvc json asp.net-web-api http-status-code-405
Could not load file or assembly 'System.Net.Http, Version=2.0.0.0 in MVC4 Web API

I have a bit of a weird problem. I developed an app with MVC 4 and the new Web API and …

asp.net asp.net-mvc-4 asp.net-web-api
Token based authentication in Web API without any user interface

I am developing a REST API in ASP.Net Web API. My API will be only accessible via non-browser based …

c# .net authentication asp.net-web-api http-token-authentication
How to pass a datetime parameter?

How to pass UTC dates to Web API? Passing 2010-01-01 works fine, but when I pass a UTC date …

asp.net datetime asp.net-web-api
HTTP 415 unsupported media type error when calling Web API 2 endpoint

I have an existing Web API 2 service and need to modify one of the methods to take a custom object …

json vb.net asp.net-web-api asp.net-web-api2 http-status-code-415
Custom method names in ASP.NET Web API

I'm converting from the WCF Web API to the new ASP.NET MVC 4 Web API. I have a UsersController, and …

c# asp.net-web-api asp.net-web-api-routing