Du brauchst eigtl. nichtmal ein eigenes Programm. Das kannst du auch per Telnet realisieren. Hier ein Beispiel unter Windows XP, Konsole:
telnet www.c-plusplus.net 80
Dann eingeben (muss kopiert und dann eingefuegt werden, da Return sofort absendet):
GET /index.php HTTP/1.1
Host: www.c-plusplus.net
User-Agent: Telnet
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: none
Accept-Charset: utf-8
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost/
Und man bekommt zurueck:
HTTP/1.1 302 Found
Date: Fri, 15 Jan 2010 16:03:22 GMT
Server: Apache/2.2.3 (Debian) PHP/4.4.4-8+etch6
X-Powered-By: PHP/4.4.4-8+etch6
Location: http://www.c-plusplus.net/cms/index.php
Vary: Accept-Encoding
Content-Length: 0
Keep-Alive: timeout=10, max=100
Connection: Keep-Alive
Content-Type: text/html