[GH-ISSUE #645] Support sending empty messages (empty body - remove minimum amount of 1 char) #65

Closed
opened 2026-03-03 16:36:22 +03:00 by kerem · 3 comments
Owner

Originally created by @s256 on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/645

My phone provider (o2) asks me to send an empty text message to one of their service numbers (56656) to retrieve infos.
Unfortunately that is not possible with httpsms right now. I get The content field must be minimum 1 char.
Is there a technical limitation/spec why empty bodies are not allowed?
Otherwise I would like to propose this as a feature request.

Image

Originally created by @s256 on GitHub (Apr 28, 2025). Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/645 My phone provider (`o2`) asks me to send an empty text message to one of their service numbers (`56656`) to retrieve infos. Unfortunately that is not possible with `httpsms` right now. I get `The content field must be minimum 1 char`. Is there a technical limitation/spec why empty bodies are not allowed? Otherwise I would like to propose this as a feature request. ![Image](https://github.com/user-attachments/assets/25e0296e-a0ee-49b4-be64-40dd9dfc621a)
kerem closed this issue 2026-03-03 16:36:22 +03:00
Author
Owner

@AchoArnold commented on GitHub (Apr 28, 2025):

@s256 How do you send an empty SMS on your mobile phone?

<!-- gh-comment-id:2836699260 --> @AchoArnold commented on GitHub (Apr 28, 2025): @s256 How do you send an empty SMS on your mobile phone?
Author
Owner

@s256 commented on GitHub (Apr 28, 2025):

yep. fair. neither iOS nor Android support it. And I assume old clamshells wont either. I'm closing the issue.

<!-- gh-comment-id:2836705310 --> @s256 commented on GitHub (Apr 28, 2025): yep. fair. neither iOS nor Android support it. And I assume old clamshells wont either. I'm closing the issue.
Author
Owner

@AchoArnold commented on GitHub (Apr 28, 2025):

I also just edited the code to send an empty SMS and it fails on the android phone. java.lang.IllegalArgumentException: Invalid message body

<!-- gh-comment-id:2836765338 --> @AchoArnold commented on GitHub (Apr 28, 2025): I also just edited the code to send an empty SMS and it fails on the android phone. `java.lang.IllegalArgumentException: Invalid message body`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/httpsms#65
No description provided.