
26 Mar
Posted by RodneyS as General, Internet, News For Geeks, Programming, Tech, Web2.0
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.
2 Responses
tony
June 11th, 2009 at 11:33 pm
1Pretty co0l…
Is there a way to do this in “quiet” mode (ie.,not verbose, where twitter doesn’t spit a buncho xml back at me in my terminal)?
I had been using blt (this perl script: http://marnanel.org/projects/blt/), but this is even simpler, really.
instrcash pokero
August 23rd, 2009 at 6:24 am
2instrcash pokero…
improperly silencing?bedder interviewee:intensify …
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
StopGeek Friends
Archives