This is the archived Netclient page. The new homepage
can be found here!
This component, part of Ocamlnet, currently contains a client for the HTTP 1.0 and 1.1 protocols, as well as a client for FTP and Telnet.
The client is HTTP 1.1-compliant which means that it implements enough of HTTP 1.1 in order to be able to communicate with any HTTP 1.1 or 1.0 server. It is simple to use, there is a convenience function that handles the whole request and the whole reply, and you need only to pass the URL to the function, and it returns the received document. It is also possible to send customized requests to the server, i.e. you can add header lines for example to get the document under a certain condition.
The HTTP client is an advanced implementation which not only masters the minimal request/reply scheme but also the more sophisticated protocol features such as:
The client does not implement all features of HTTP 1.1; in particular multipart messages are currently left out. Note that this feature is optional, i.e. its absence does not break the compatibility with the protocol.
The FTP client is not yet ready for "production" use. Although most of the protocol is implemented, some important features are missing (e.g. uploading files), and there are also issues, especially the exception handling does not work yet as specified. Nevertheless, it is stable enough to experiment with it. As the HTTP client, it supports concurrency by multiplexing.