Could you provide more details on the error you get?
I believe the URIs use https for security and using just http may not be possible.
the problem my PI server does not configured as https.
But I can use C sample code (OMF-Sample-Master in github ) to post data to PI Server IP address, but using python code show read time out.
If PI Server only accept https , why I can use C sample to post data to PI Server?