add user agent support
set TransferEncodingChunked as appropriate