I have my C++ program open up the command line for cURL, and I would like cURL to directly send a text message. If it's possible, I'm wondering if anyone can share an example of that.
Twilio developer evangelist here.
You absolutely can send a text message with Twilio using curl. Here's an example of the call you'd make:
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json" \ --data-urlencode "To=RECEIVING_NUMBER" \ --data-urlencode "From=YOUR_TWILIO_NUMBER" \ --data-urlencode "Body=This is a message sent from curl" \ -u YOUR_ACCOUNT_SID:YOUR_AUTH_TOKEN
The bits you'd need to fill in are listed in caps.
Let me know if this helps at all.