System.Net.ServicePointManager.DefaultConnectionLimit and .MaxServicePointIdleTime
When would you need to adjust these two settings (below)? And what do these two numbers mean for HttpWebRequest instances that I make?
When would you need to adjust these two settings (below)? And what do these two numbers mean for HttpWebRequest instances that I make?
I am trying to write a REST web service using ServiceStack that accepts variable paths off of route. For example:
I’m trying to call a webservice from my local machine. But the I get the following errors in Chrome console:
http://www.test.com/service.svc/api/?cid=1 405 (Method Not Allowed)
XMLHttpRequest cannot load http://www.test.com/service.svc/api/?cid=1.
Origin http://localhost is not allowed by Access-Control-Allow-Origin.
I’m well into implementing a REST service (on a Windows CE platform if that matters) and I started out using IBM’s general definitions of using POST for creating (INSERTs) and PUT for updating.
I’m looking at using ASP.Net MVC as a platform for a REST based Service. I know WCF has built in support for REST services; however, I’m looking at returning multiple types of data depending on the request.
Reading this question, @Pinpoint’s answer and the further discussion on comments, I’m well aware that natively we can’t add an identity provider to our apps developed with ASP.NET 5. One possible replacement for the legacy OAuthAuthorizationServerMiddleware is then provided by the AspNet.Security.OpenIdConnect.Server as I’ve found in many places.
I’m trying to send data from my Android client as a POST request to my Web API Backend but it returns a 404 response code. Here’s my code:
I have been trying to use Google Transliterate API using the RESTful approach as its easy to do so through server side language (C# here).
How does one read the request body in ASP.NET? I’m using the REST Client add-on for Firefox to form a GET request for a resource on a site I’m hosting locally, and in the Request Body I’m just putting the string “test” to try to read it on the server.
I have the following example where the request is http://{domain}/api/foo/{username} but I get a 404 status code back. No other Get actions exist on this controller. Shouldn’t this work?