Selthien
Selthien

Reputation: 1258

Can't get a response back when using localhost on Asp.net web API and postman

I was attempting to run my asp.net web API project in debug mode and then call it from postman. I tried calling the default api values controller but my request keeps timing out saying it cant reach the server:

Values Controller:

public class ValuesController : ApiController
{
    // GET api/values
    public IEnumerable<string> Get()
    {
        return new string[] { "value1", "value2" };
    }

    // GET api/values/5
    public string Get(int id)
    {
        return "value";
    }

    // POST api/values
    public void Post([FromBody]string value)
    {
    }

    // PUT api/values/5
    public void Put(int id, [FromBody]string value)
    {
    }

    // DELETE api/values/5
    public void Delete(int id)
    {
    }
}

Postman response:

enter image description here

Web Browser Help Page:

enter image description here

Is there some additional setup I need to do? Or common issues related to this?

Upvotes: 1

Views: 2257

Answers (1)

Uğur Can
Uğur Can

Reputation: 164

It will be fixed if you do the ssl certificate offline from Settings. Settings

SSL certificate verification: OFF

Upvotes: 3

Related Questions