HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[code.haxe.org] Beginner - Loading a file from web #47

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Loading a file from web - Beginner - Haxe programming language cookbook

This example uses haxe.Http to load external json file using and demonstrates how to handle the result.

https://code.haxe.org/category/beginner/loading-external-files.html

Gavriliuk commented 4 years ago

Invalid TLS/SSL certificate

https://api.ipify.org?format=json

Error code: SEC_ERROR_UNKNOWN_ISSUER

$ openssl s_client -connect api.ipify.org:443
CONNECTED(00000003)
depth=2 C = US, ST = California, L = San Francisco, O = Cisco, CN = Cisco Umbrella Primary SubCA
verify error:num=20:unable to get local issuer certificate
Gavriliuk commented 4 years ago

The word "api" has to be replaced with "api6" in the used URI:

https://api6.ipify.org?format=json

This URI works well in the demonstrated example

See https://github.com/HaxeFoundation/code-cookbook/pull/145