httpforge offers tools to test webservers, webapps or any website by manipulating, sending, recieving and analyzing HTTP messages. You may either use each tool alone, or combine them with shell pipes.
> httpforge -s "Host: www.aspyct.org" -m HEAD
HEAD / HTTP/1.0
Host: www.aspyct.org
> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend
HTTP/1.1 200 OK
Set-Cookie: 60gp=R5109673329; path=/; expires=Fri, 04-Feb-2011 03:20:17 GMT
Date: Tue, 01 Feb 2011 15:21:46 GMT
Server: Apache/2.2.X (OVH)
X-Powered-By: PHP/5.2.17
X-Pingback: http://www.aspyct.org/xmlrpc.php
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend | httpextract code
200
> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend | httpassert -c 204
code: expected 204, got 200
httpforge is offered to you by Antoine d’Otreppe de Bouvette. Visit www.aspyct.org for more products. Questions, suggestions and other subjects are welcome at a.dotreppe@aspyct.org.