W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1995

Just The Page, Please

From: <guthery@austin.sar.slb.com>
Date: Mon, 11 Dec 95 15:05:07 CST
Message-Id: <9512112105.AA15699@asterix>
To: www-lib@w3.org
I'd like libwww to just get a page and dump it to stdout *UNTOUCHED*.

Why doesn't the following do this?

   HTLibInit("Dump", "0.0);

   HTProtocol_add("http", YES, HTLoadHTTP, NULL);

   HTRequest_setOutputStream (request, output);

   if ((ref = HTParse(argv[1], "", PARSE_ALL)) &&
       (anchor = (HTParentAnchor *) HTAnchor_findAddress(ref)) &&
       HTLoadAnchor((HTAnchor *)anchor, request))
   { printf ("\n");
     exit (0);
   }
   else
   { exit (1); }


Thanks, Scott
Received on Monday, 11 December 1995 16:05:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:25 GMT