Removes --insecure curl option

`curl` calls were using the `--insecure` option that makes `curl` ignore any certificate issues.
When first releasing this script, the *smsapi.free-mobile.fr* was not serving a valid/trusted SSL/TLS certificate, so `--insecure` was used to avoid getting normal but noisy errors.
Today, it seems *smsapi.free-mobile.fr*'s SSL/TLS issues are solved, so `--insecure` is not relevant anymore.

This commit removes the insecure `--insecure` option.

Closes: #2
This commit is contained in:
C-Duv 2017-10-04 13:25:08 +02:00 committed by GitHub
parent afccc39b37
commit 47b06c778c

View File

@ -148,15 +148,11 @@ FINAL_MESSAGE_TO_SEND=$(\
# echo "${FINAL_MESSAGE_TO_SEND}" #DEBUG # echo "${FINAL_MESSAGE_TO_SEND}" #DEBUG
# Particularités de l'appel de curl et la/les options associées : # Particularités de l'appel de curl et la/les options associées :
# * Le certificat de $SMSAPI_BASEURL ne fourni pas d'informations sur son
# propriétaire :
# --insecure
# * Renvoi le code réponse HTTP uniquement : # * Renvoi le code réponse HTTP uniquement :
# --write-out "%{http_code}" --silent --output /dev/null # --write-out "%{http_code}" --silent --output /dev/null
# #
HTTP_STATUS_CODE=$(\ HTTP_STATUS_CODE=$(\
curl \ curl \
--insecure \
--write-out "%{http_code}" \ --write-out "%{http_code}" \
--silent \ --silent \
--output /dev/null \ --output /dev/null \