libapp_2.c
Upload User: zlh9724
Upload Date: 2007-01-04
Package Size: 1991k
Code Size: 1k
Category:

Browser Client

Development Platform:

Unix_Linux

  1. #include "WWWLib.h"
  2. #include "WWWHTTP.h"
  3. int main()
  4. {
  5.     HTList *converters = HTList_new();      /* Create a list object */
  6.     /* Initialize the Library */
  7.     HTLibInit("TestApp", "1.0");
  8.     /* Register the HTTP Module */
  9.     HTProtocol_add("http", YES, HTLoadHTTP, NULL);
  10.     /* Add a conversion to our empty list */
  11.     HTConversion_add(converters, "*/*", "www/present", HTSaveLocally, 1.0, 0.0, 0.0);
  12.     /* Register our list with one conversion */
  13.     HTFormat_setConversion(converters);
  14.     /* Delete the list with one conversion */
  15.     HTConversion_deleteAll(converters);
  16.     /* Terminate the Library */
  17.     HTLibTerminate();
  18.     return 0;
  19. }