hcap logo
  About Download Documentation Source

About

hcap is a small, highly configurable, asynchronous HTTP and/or SOCKS v5 proxy server. Its main purpose is to limit the bandwidth of HTTP requests and responses to and from the connecting client. As little modification as possible of the client and server data is done. hcap does not validate client requests or server responses unless required specifically by hcap. Such behavior allows non-standard servers or clients to use hcap.

Note

While hcap works, it does not yet support keep-alive connections to the proxy where more than one request is sent on the same connection. This is due to the parser is not yet mature enough to handle connection pipelining or keep-alive connections to the proxy.

There is also a bug with libevent2 that causes evdns requests to cause segmentation faults, this is perhaps due to using bufferevents just to connect (and libevent2 still being in alpha stage).

Why HTTP?

HTTP is a well-defined protocol. It's simple to parse and provides standard and non-standard options to increase performance of proxy connections. Specifically, HTTP provides mechanisms for sharing connections for multiple requests and pipelining requests on one connection to the proxy (hcap does not yet support this).

Support for SOCKS v5 is currently being implemented into hcap.

Prerequisites

hcap is written entirely in ANSI C (ISO/IEC 9899:1990) for portability... since the Microsoft compilers don't support C99.
Other than an ANSI C compiler, hcap requires:
  • bakefile (to build from source)
  • libevent-2.0.4 (or greater)

Features

Not all features have been implemented yet. A non-complete list of what hcap covers:
  • Global upload and download limit to and from the client.
  • Collecting and generating statistics.
  • Limiting bandwidth per server or client.
  • IPv6 support.
  • Proxy chaining.
  • Blacklisting.
  • Filtering content.
  • Logging content.
  • SOCKS 5 support.
  • Content type detection and filtering for SOCKS v5.
  • HTTP interface to interact with hcap.
$Revision: 417 $

Creative Commons License Get hcap at SourceForge.net. Fast, secure and Free Open Source software downloads Valid XHTML 1.0 Transitional