Added support for chunked HTTP upload