Sumandeep Singh
Sumandeep Singh

Reputation: 45

I want my web API work with both HTTP and HTTPS requests

I have rest web API which is used internally, as well as externally by a third party, and it is called through URL.

I want it to work with both HTTP and HTTPS requests. It's working fine with HTTP requests, but with HTTPS requests it showing a error. The remote server returned an error: (404) Not Found.

Upvotes: 1

Views: 12049

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039238

You will need to configure an SSL certificate on the web server. If you are using IIS here's a tutorial on how this could be done: http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis

Once you install a certificate your API will be accessible on HTTPS.

Upvotes: 2

Related Questions