Ideas for version 1.3 of www-techinfo gateway In whatis_type, if the keywords match a string in the gw.schemes file (http://, telnet://, gopher://, etc), then the type is L, meaning link. Also, fix the "TELNET_SESSION" type nodes -- rewrite the entire buffer, set the keyword list to the corresponding telnet:// value. In whatis_type, if the keywords start with /html, then the document is a HTML document, not a menu, not an image, not a plain text document. Use type 'H'. In whatis_type, if the keywords start with /techinfo or /penninfo, then the type is L, a link. Re-write the entire keyword list, using /%s/%s/%s tiserver, tiport, oldkeyword list. In send_node_list, if the type is L (link), then use the nd.keyword list as the HREF= value, and use the nd.title as the name of the link. type H. In send_node_list, if the type of the menu item is H (HTML), then, in the HREF, send %s/%s/%s/%s tiserver, tiport, tinodeid, I_HTML In handle_request, if the optype is I_HTML, then call send_html_doc() New routine: send_html_doc(); Very similar to sending a plaintext document, only 1) don't print at the beginning and 2) as the HTML tags get sent, examine href tags. If any of the names is href="/penninfo/[whatever], then change the address in the HREF to /localtiserver/localtiport/[whatever] If the href is href="/techinfo/[whatever]", then change it to href="http://gwhost:gwport/[whatever].