Published in: Bash
URL: http://www.morethanseven.net/posts/posting-to-twitter-using-php/
curl -u username:password -d status="twittering from curl" http://twitter.com/statuses/update.xml
Comments
Subscribe to comments
You need to login to post a comment.

curl -u noahsussman:bluecell -d status="Slightly less verbose output." http://twitter.com/statuses/update.xml | grep truncated
Ha ha or you can leave off your password and it will prompt you interactively; so it doesn't wind up in your history file (or, say, published on the Internet).
Also add the -s option for absolutely the least output -- just prints the XML tag that indicates whether a tweet was truncated for being over 140 characters, nothing else.
curl -s -u user:password -d status="Slightly less verbose output." http://twitter.com/statuses/update.xml | grep truncated