title: Sending an SMS by command line with Huawei E3372 saved to drafts
body: <p>the problem that i have is when i execute the scripts below for sending the message it shows me an ok response and the message will get saved in the draft section not actually being sent</p>
  <pre><code>#! /bin/bash
  [[ ! -f ~/.config/hilink.conf ]] &amp;&amp; printf &quot;HILINK_PROTO=http\nHILINK_HOST=192.168.8.1\nHILINK_PORT=80\nHILINK_USER=user\nHILINK_PASSWORD=password\n&quot; &gt;~/.config/hilink.conf
  
  
  
  source ~/.config/hilink.conf
  
  SesTokInfo=$(curl -s \
  --url     &quot;$HILINK_PROTO://$HILINK_HOST:$HILINK_PORT/api/webserver/SesTokInfo&quot; \
  --header  &quot;Host:$HILINK_HOST&quot; \
  --user    &quot;$HILINK_USER:$HILINK_PASSWORD&quot; 
  )
  HILINK_COOKIE=$(echo &quot;$SesTokInfo&quot;|grep SessionID=|cut -b 10-147)
  HILINK_TOKEN=$(echo &quot;$SesTokInfo&quot;|grep TokInfo|cut -b 10-41)
  
  CONTENT=$1
  PHONE=$2
  DATE=$(date '+%Y-%m-%d %T')
  LENGTH=${#CONTENT}
  
  curl -fSs $HILINK_PROTO://$HILINK_HOST:$HILINK_PORT/api/sms/send-sms \
  --header &quot;Host:$HILINK_HOST&quot; \
  --header &quot;Cookie:$HILINK_COOKIE&quot; \
  --header &quot;__RequestVerificationToken:$HILINK_TOKEN&quot; \
  --user   &quot;$HILINK_USER:$HILINK_PASSWORD&quot; \
  --data   &quot;&lt;request&gt;&lt;Index&gt;1&lt;/Index&gt;&lt;Phones&gt;&lt;Phone&gt;$PHONE&lt;/Phone&gt;&lt;/Phones&gt;&lt;Sca&gt;0220227672&lt;/Sca&gt;&lt;Content&gt;$CONTENT&lt;/Content&gt;&lt;Length&gt;$LENGTH&lt;/Length&gt;&lt;Reserved&gt;1&lt;/Reserved&gt;&lt;Date&gt;$DATE&lt;/Date&gt;&lt;/request&gt;&quot;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/eUKSb.png" rel="nofollow noreferrer">this the drafts section image</a></p>