3 of 3 people found this helpful
Any chance that you previously accepted a warning in your browser telling that navigation (https) is not secure?
I am not sure what technology you are using for your devs but you may need to change some settings during you developments to allow working with the self-signed SSL certificate generated by PI Web API:
The other (better options) is to add the SSL certificate from PI Web API server into your trusted store.
the full how-to is available on this video:Setting up PI Web API for a Development Project - from 4:43
(Thanks Daphne Ng ;o) )
Hope this helps,
Are you adding the Authentication headers to your request? In the browser when you first visited the piwebapi address you may have been prompted for credentials. The browser identified the site as requiring authentication, prompted the user, and now has your credentials cached. The browser will take care of everything for you, up until the cached credentials expire or are cleaned up. In your C# app you need to take care of this process manually by adding the authentication headers manually.
Additionally, as Patrice Thivierge mentioned, you'll need to setup a certificate for your web api or set your http client to ignore certificate errors.