Perl, Python, Ruby and PHP come with a number of options specifically designed for working with REST, which makes more complicated scripting much easier (such as with php???s curl_setopt); however, these are mostly useful if you already know those languages and the point of this article was to stay in shell scripting land.