A while ago I came across twill whilst working on a testing project and thought others may also be interested. twill is essentially an open source web testing tool written in Python. twill allows you to browse the Web from a command line interface. twill supports cookies, forms and most common interactions.
Below is an example of a simple Google search, taken from their example page:
setlocal query "twill Python"
fv 1 q $query
submit btnI # use the "I'm feeling lucky" button
For more information visit http://twill.idyll.org.