Rechercher dans la communauté
Affichage des résultats pour les étiquettes '4g+'.
2 résultats trouvés
-
demande Aide Envoi d'un SMS via CURL avec un routeur HUAWEI 4G (suite
mprinfo a posté un sujet dans Le bistrot
ce topic fais suite a celui ci qui est fermer : Mon objectif est de pouvoir envoyer des sms via mon routeur 4g pour le moment avec Curl voici un lien de l'api de mon routeur https://blog.hqcodeshop.fi/archives/259-Huawei-E5186-AJAX-API.html Je viens de trouver ce site très intéressant https://www.mrt-prodz.com/blog/view/2015/05/huawei-modem-api-and-data-plan-monitor Mise a jour du firmware : https://mega.nz/folder/fUYB3LiQ#lS35ocsbiJy4aT7aXd-U-Q/folder/KEhXDKqA Volia ou j'en suis avec le CURL j'arrive a faire du get temps qu'il ne faut pas une authentification Je sais que le password et de type 4 en base64 aprés je bloc voila ce qui fonctionne : ---------------------------------------------------------------------------------------------------------------------- -- Pour faire des GET ---------------------------------------------------------------------------------------------------------------------- RESPONSE=`curl -s -X GET http://$modem_ip/api/webserver/SesTokInfo` COOKIE=`echo "$RESPONSE"| grep SessionID=| cut -b 10-147` TOKEN=`echo "$RESPONSE"| grep TokInfo| cut -b 10-41` echo $RESPONSE echo $COOKIE echo $TOKEN --------------------------------------------------------------------- -- Liste des GET qui fonctionnent -- https://blog.hqcodeshop.fi/archives/259-Huawei-E5186-AJAX-API.html --------------------------------------------------------------------- curl -s -b $COOKIE "http://$modem_ip/api/device/signal" curl -s -b $COOKIE "http://$modem_ip/config/global/config.xml" curl -s -b $COOKIE "http://$modem_ip/config/global/net-type.xml" curl -s -b $COOKIE "http://$modem_ip/config/pcassistant/config.xml" curl -s -b $COOKIE "http://$modem_ip/config/deviceinformation/config.xml" curl -s -b $COOKIE "http://$modem_ip/api/cradle/status-info" curl -s -b $COOKIE "http://$modem_ip/api/device/autorun-version" curl -s -b $COOKIE "http://$modem_ip/api/device/basic_information" curl -s -b $COOKIE "http://$modem_ip/api/device/device-feature-switch" curl -s -b $COOKIE "http://$modem_ip/api/device/information" - il faut une authentification curl -s -b $COOKIE "http://$modem_ip/api/device/signal" curl -s -b $COOKIE "http://$modem_ip/api/dialup/connection" curl -s -b $COOKIE "http://$modem_ip/api/dialup/mobile-dataswitch" curl -s -b $COOKIE "http://$modem_ip/api/global/module-switch" curl -s -b $COOKIE "http://$modem_ip/api/language/current-language" curl -s -b $COOKIE "http://$modem_ip/api/monitoring/check-notifications" curl -s -b $COOKIE "http://$modem_ip/api/monitoring/converged-status" curl -s -b $COOKIE "http://$modem_ip/api/monitoring/status" curl -s -b $COOKIE "http://$modem_ip/api/monitoring/traffic-statistics" curl -s -b $COOKIE "http://$modem_ip/api/net/current-plmn" curl -s -b $COOKIE "http://$modem_ip/api/online-update/upgrade-messagebox" curl -s -b $COOKIE "http://$modem_ip/api/pin/status" curl -s -b $COOKIE "http://$modem_ip/api/redirection/homepage" curl -s -b $COOKIE "http://$modem_ip/api/security/upnp" - il faut une authentification curl -s -b $COOKIE "http://$modem_ip/api/sms/sms-list" curl -s -b $COOKIE "http://$modem_ip/api/user/login" curl -s -b $COOKIE "http://$modem_ip/api/user/remind" curl -s -b $COOKIE "http://$modem_ip/api/user/session" curl -s -b $COOKIE "http://$modem_ip/api/user/state-login" curl -s -b $COOKIE "http://$modem_ip/api/wlan/basic-settings" curl -s -b $COOKIE "http://$modem_ip/api/wlan/multi-switch-settings" curl -s -b $COOKIE "http://$modem_ip/api/wlan/wifi-feature-switch" curl -s -b $COOKIE "http://$modem_ip/api/net/net-mode" Pour l'envoi de sms j'ai trouver cela mais ca fonctionne pas RESPONSE=`curl -s -X GET http://192.168.8.1/api/webserver/SesTokInfo` COOKIE=`echo "$RESPONSE"| grep SessionID=| cut -b 10-147` TOKEN=`echo "$RESPONSE"| grep TokInfo| cut -b 10-41` NUMBER=$1 SMS=$2 DATA="<?xml version='1.0' encoding='UTF-8'?><request><Index>-1</Index><Phones><Phone>$NUMBER</Phone></Phones><Sca></Sca><Content>$SMS</Content><Length>11</Length><Reserved>1</Reserved><Date>-1</Date></request>" curl -v http://192.168.8.1/api/sms/send-sms \ -H "Cookie: $COOKIE" -H "__RequestVerificationToken: $TOKEN" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \ --data $DATA Par contre j'ai trouvé cela pour windows est cela fonctionne très bien Site de référence Telechargement -
demande Aide Envoi d'un SMS via CURL avec un routeur HUAWEI 4G
mprinfo a posté un sujet dans Matériels Réseaux
Depuis de matin j’essaie d'envoyer un sms avec une commande Curl sur mon routeur HUAWEI E5186s-22a voici la ligne de commande Curl curl "http://192.168.8.1/api/sms/send-sms" --data '<?xml version="1.0" encoding="UTF-8"?><request><Index>-1</Index><Phones><Phone>0611223344</Phone></Phones><Sca></Sca><Content>toto</Content><Length>4</Length><Reserved>1</Reserved><Date>2015-02-01 14:02:26</Date></request>' voici un lien de l'api de mon routeur https://blog.hqcodeshop.fi/archives/259-Huawei-E5186-AJAX-API.html