On Jun 19, 2008, at 6:52 AM, Xiaofan Chen wrote: > I am trying to see if I can write some simple C based program > to test the HTTP demo project from Microchip So you want a program that opens a tcp connection, sends some data, receives the response, cleans up, and exits, without the "baggage" of a whole web browser or email client, or telnet option negotiation, or ANYTHING around it? That's ... tougher than you'd think it would be. Try looking for tcpf.c; an old cisco program for spitting data over a terminal server to printers, and similar. I don't see it on our ftp server any more, but it's out there on the net, for instance at ftp:// ftp.zenez.com/pub/SCO/skunkware/src/sysadmin/tcpf.c alternately, you can try one of the "small" apps usually part of a unix system. (rwho, finger, maybe even rcp...) BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist