I came up with:
curl -d "phoneNumber=6122223345&message=TheMessa
When I did that, the response said:
Cookies Are Not Enabled
So, I tried playing with -c (cookie jar) and some other stuff. One time, I accidentally copy and pasted the line twice into the terminal (as well as mispelled confirm), so it looked like this:
curl --cookie-jar -c cookiez.tmp -d "phoneNumber=6122223345&message=TheMessa
This did weird stuff. It downloaded the page twice. First, I got:
curl: (6) Couldn't resolve host 'cookiez.tmp'
<html><head><title>302 Moved Temporarily</title></head>
<p>This document you requested has moved temporarily.</p>
<p>It's now at <a href="/textmessaging/compose;JSESSIONID_
Saying the page is in a different spot. Second, it downloaded the compose page, with the notice that the text message is in fact being sent! The 2nd set of arguments is irrelevant and discarded, so the phone number must be set in the first set of arguments.
My question is, 1. Why does this work - I'd imagine the first page sets a cookie that is passed to the second page. 2. What could I have done to do this right the first time.
Phone numbers have been changed from their original values.