haly_l
February 18, 2017, 4:29pm
1
Can you please let me know how to use POST request with Arduino Yun? Trying to use Google Geolocation API but couldnt find the right commands.
https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_API_KEY
Please let me know which example sketch can help me. Unfortunately I could not find a working way by using curl and Webhook widget from Blynk.
Any help is appreciated.
sonnyyu:
HttpClient use curl, and curl need root CA install, to support HTTPS POST ( as well as GET) , The root CA is needed.
I compile ca-certificates for get rid of "--no-check-certificate" at wget.
wget -O ca-certificates_20140325_ar71xx.ipk https://www.dropbox.com/s/rmvkunea1ifa9zn/ca-certificates_20140325_ar71xx.ipk?dl=0 --no-check-certificate
opkg update
opkg install openssl-util
opkg install ca-certificates_20140325_ar71xx.ipk
I compiled ca-certificates_20140325_ar71xx.ipk long time time ago, use it as Caution