The built-in http input protocol is somewhat under-developed, so this is a wrapper of curl to get access to advanced http protocol features.