Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
libapp_3.c
Package: arena-beta-2b-src.tar.gz [view]
Upload User: zlh9724
Upload Date: 2007-01-04
Package Size: 1991k
Code Size: 1k
Category:
Browser Client
Development Platform:
Unix_Linux
- #include "WWWLib.h"
- #include "WWWHTTP.h"
- #include "WWWMIME.h"
- #include "WWWApp.h"
- int main (int argc, char ** argv)
- {
- HTList * converters = HTList_new();
- HTRequest * request = HTRequest_new(); /* Create a request object */
- HTLibInit("TestApp", "1.0");
- HTProtocol_add("http", YES, HTLoadHTTP, NULL);
- HTConversion_add(converters, "text/x-http","*/*", HTTPStatus_new,
- 1.0, 0.0, 0.0);
- HTConversion_add(converters, "message/rfc822", "*/*", HTMIMEConvert,
- 1.0, 0.0, 0.0);
- HTFormat_setConversion(converters);
- HTAlert_add(HTPrompt, HT_A_PROMPT);
- if (argc == 2) {
- HTLoadAbsolute(argv[1], request);
- } else
- printf("Type the URL to fetchn");
- HTRequest_delete(request); /* Delete the request object */
- HTConversion_deleteAll(converters);
- HTLibTerminate();
- return 0;
- }