Just The Page, Please

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 UTC