简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM