Add support to HTTP proxy, fix issue #22