Twitter has become very popular recently and some people seem to want to be able to tweet all day long. If you are at work it is kind of hard to go to twitter or open your favorite twitter program and not get in trouble. So today we are going to look at a way to update twitter from the command line. This way if you are someone who deals with a command prompt a lot then you can tweet to your hearts content. To do this you will need curl. The command is very simple and is below.

curl -u youruser:yourpassw -d status=”text” http://twitter.com/statuses/update.xml

the -u option specifies the user and password to use for server authentication.. The -d option sends the specified data in a POST request to the HTTP server, in a way that can emulate as if a user has filled in a HTML form and pressed the submit button. You replace “text” with what you want to be posted to twitter. I am doing this on a linux computer but it should work similar on a windows or Mac computer.

About The Author