libapp_2.c
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:1k
源码类别:

浏览器

开发平台:

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. }