This is my code protected void Button1_Click(object sender, EventArgs e) { var client = new RestClient("http://api.meaningcloud.com/class-1.1"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/x-www-form-urlencoded"); request.AddParameter("application/x-www-form-urlencoded", "key=MY_KEY_VALUE1b&txt=PRUEBA&model=IPTC_es", ParameterType.RequestBody); IRestResponse response = client.Execute(request); txtRespuesta.Text = response.Content; } This is the response <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>406 Not Acceptable</title> </head><body> <h1>Not Acceptable</h1> <p>An appropriate representation of the requested resource /class-1.1 could not be found on this server.</p> Available variants: <ul> <li><a href="class-1.1.php">class-1.1.php</a> , type application/x-httpd-php</li> </ul> <hr> <address>Apache/2.4.7 (Ubuntu) Server at api.meaningcloud.com Port 80</address> </body></html> Any idea what im doing wrong? Thanks for your time What I have tried: I try change the method for the response.</hr>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)