[ooc-compiler] Support for HTTP GET in libxml
Brought to you by:
mva
|
From: Michael v. A. <mi...@de...> - 2000-08-27 15:20:25
|
I've just added serveral modules to the libxml CVS repository on SourceForge. The "http" URI now supports the `GetChannel' method. It performs an HTTP/1.0 request for the entity referred to by the URI. Supporting modules include wrappers for Unix sockets (module IO:Socket) and the select() function (module IO:Select). Two example programs are included: MODULE TestGet: This program takes a single argument, an "http" URI. It tries to retrieve the URI using a "GET" request. On success, the retrieved entity's content is written to stdout. Otherwise, an error message is written to stderr. MODULE TestServer: This program implements a simple server in the Internet namespace. It listens on port 5555 of the local host for incoming connections. You can use "telnet localhost 5555" to connect to the server process. Any data received on connections is written to stdout. Debugging output is send to stderr. Because there is some low-level C code involved, I'm not sure that the modules work out of the box on non-Linux systems. I would like to get some feedback for other platforms. -- mva |