capcom6/android-sms-gateway

INTERNAL PROBLEM WITH SMS-GATEWAY CAPCOM6

Gagan7979 opened this issue · 8 comments

C:\Windows\System32>curl -X POST -u :
The system cannot find the file specified.

C:\Windows\System32> -H "Content-Type: application/json"
'-H' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32> -d '{ "message": "Hello, world!", "phoneNumbers": ["+79990001234", "+79995556677"] }'
'-d' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32> http://<10.0.0.85>:8080/message
The system cannot find the file specified.

hey i am receiving this error when i run cmd with curl.i am on windows 11 and using moto g pure android phone with one sim card. please help me in fixing this issue to send sms.i have already run CHKDSK cmd everything is good in pc. Just problem with this message please check

It looks like there are a few problems with the way the curl command is being used in the Windows Command Prompt. The errors are due to syntax issues and incorrect usage of the curl command.

Here's a corrected version of the curl command you should use:

curl -X POST -u "<username>:<password>" -H "Content-Type: application/json" -d "{ \"message\": \"Hello, world!\", \"phoneNumbers\": [\"+79990001234\", \"+79995556677\"] }" http://10.0.0.85:8080/message

Please replace <username> and <password> with the actual username and password for authentication.

To break it down:

  1. The entire curl command should be written on a single line.
  2. The -u option is used for authentication. Replace <username> and <password> with your credentials.
  3. The -H option specifies the header. In this case, it sets the Content-Type to application/json.
  4. The -d option specifies the data to be sent in the POST request. The data should be in JSON format and properly escaped.
  5. Finally, the URL http://10.0.0.85:8080/message should be the endpoint you're sending the request to.

curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

am getting this message now i will really appreciate if you can please make me a call am working from last 2 days to fix it and use sms gateway +14374247963 or please find a solution

Unfortunately, this issue is not related to the project. It is an issue with using curl on Windows. I recommend using Linux or Mac, because all examples are tested on these OSes. Regarding the last error, please check that you are using http for the local server, not https. Alternatively, try using a cloud server as described in https://sms.capcom.me/getting-started/public-cloud-server/

Sorry, but because this is an open-source project, I don't provide any phone support.

@Gagan7979 try to send request via POSTMAN its a great tool.

Hello!

Do you have any other questions regarding the project itself, not the third-party tools like curl or Postman?

The Android operating system has built-in limits for sending messages. This could be the reason for the error you're experiencing.

For troubleshooting steps and recommendations regarding this error, please refer to our FAQ page:
https://sms-gate.app/faq/errors/#result_error_limit_exceeded-error