Perhaps you should look into Java... the Java to do this would be a lot easier... Personally, with C/C++ I'd go looking for a library of socket code, and tear it apart. Unfortunatly the only way I know how to do this in any C language is to use Visual C++... which is EVIL. Perhaps getting ahold of the code for Open DOS's HTML/HELP program would be start, or perhaps Lynx (I think Lynx is GPL'd). Try sourcefourge.