Tag Archives: Curl

Twitter Feeds support http if-modified-since

When looking at the twitter feeds today I noticed that they support http if-modified-since. Type in the following in your shell:

$ curl -z “20070312 00:00:00 CET”

http://twitter.com/statuses/user_timeline/663633.rss

and it returns:

<?xml version=”1.0″ encoding=”UTF-8″?>
<rss version=”2.0″>
<channel>
<title>Twitter / lemonad</title>
<link>http://twitter.com/lemonad</link>
<description>Twitter updates from lemonad</description>
<language>en-us</language>
<ttl>40</ttl>
<item>
<title>lemonad: This is a message</title>
<description>lemonad: This is a message</description>
<pubDate>Mon, 12 Mar 2007 05:11:34 +0000</pubDate>
<guid>http://twitter.com/lemonad/statuses/6883771</guid>
<link>http://twitter.com/lemonad/statuses/6883771</link>
</item>
<item>
<title>lemonad: This is another message</title>
<description>lemonad: This is [...]