in general, according to the advice found above
OptWare on HiLink modems (Post sedarmill # 61176332)something was installed, the directory / opt / bin / was filled with files.
however, I can’t install anything else ...
or is there nothing more in the repository, and continue to work with your hands? otherwise I would like to have access through SCP, but WinSCP cannot read the contents of the directory, says -la says nothing.
... delivered curl by simply adding it to install.sh from entware. curl delivered.
since he doesn’t want to start anything without explicitly indicating / opt / bin, he somehow rewrote the script for sending sms in such a terrible form, but it works!
SMS script
#! / bin / sh
i = "192.168.42.129"
r = `/ opt / bin / curl -s -X GET http: // $ i / api / webserver / SesTokInfo`
c = `/ opt / bin / echo" $ r "| / opt / bin / grep SessionID = | / opt / bin / cut -b 10-147`
t = `/ opt / bin / echo" $ r "| / opt / bin / grep TokInfo | / opt / bin / cut -b 10-41`
p = "$ 2"
s = "$ 1"
l = $ {# s}
/ opt / bin / curl -v http: // $ i / api / sms / send-sms \
-H "Cookie: $ c" \
-H "__RequestVerificationToken: $ t" \
-H "Content-Type: application / x-www-form-urlencoded; charset = UTF-8" \
-H "Accept: * / *" \
-H "Referer: http: //$i/html/smsinbox.html" \
-H 'X-Requested-With: XMLHttpRequest' \
-H "Connection: keep-alive" \
-H "Origin: http: // $ i" \
--data "<? xml version = '1.0' encoding = 'UTF-8'?><request><Index>-1</ Index><Phones><Phone>$ p</ Phone></ Phones><Sca></ Sca><Content>$ s</ Content><Length>$ l</ Length><Reserved>1</ Reserved><Date>-1</ Date></ request>"
but the script exhaust comes with error 100005. The same thing, if you run the script from, say, a router, the same error:
error sending sms
#
# / opt / bin / sms_send "test" +79107100000
>POST / api / sms / send-sms HTTP / 1.1
>Host: 192.168.42.129
>User-Agent: curl / 7.57.0
>Cookie: SessionID = FFrRNSXU3ODnfyP + 4nRvfhT97PiM17xrnIazaStQpY2 + I9P7boNYqZCTvbI9FZS8vrFF6TRVOBRhHylW4alDLcVczDy + lKFY5x5Z9WB QKKBKKGKGKK
>__RequestVerificationToken: oLaKC7LBCATrPzVl0J5n2MvACBTU9J4C
>Content-Type: application / x-www-form-urlencoded; charset = utf-8
>Accept: * / *
>Referer: http://192.168.42.129/html/smsinbox.html
>X-Requested-With: XMLHttpRequest
>Connection: keep-alive
>Origin: http://192.168.42.129
>Content-Length: 207
>
<HTTP / 1.1 200 OK
<Date: Thu, 01 Jan 1970 00:00:00 GMT
<Server: mini_httpd / 1.19 19dec2003
<Connection: close
<X-Download-Options: noopen
<X-Frame-Options: deny
<X-XSS-Protection: 1; mode = block
<Strict-Transport-Security: max-age = 31536000; includeSubdomains
<Cache-control: no-cache
<Content-Type: text / html
<Content-Length: 101
<__RequestVerificationToken: DLQqXHkxJjPc12XigR8pBzUYZR2fkzh1
<
<? xml version = "1.0" encoding = "UTF-8"?>
<error>
<code>100005</ code>
<message></ message>
</ error>
#
What is the error 100005 and how to overcome it?
Post has been edited[HC] HUNTER - 07.12.18, 14:13