OK so removing the headers and sending chunks sequentially now works for uploading files to TON. However, a 4 Gb file now takes ~25 min 
I am getting 400 errors from the TA API when applying the change (see below) so Iām wondering if the file was not assembled back together properly ā is that possible? How can I check?
This is the message Iām getting when passing the TON file to the TA
[makeAudienceChange] Got response from Twitter for audience change:HttpResponseProxy{HTTP/1.1 400 Bad Request [content-disposition: attachment; filename=json.json, content-type: application/json;charset=utf-8, date: Tue, 09 Jun 2015 19:18:23 GMT, server: tsa_b, strict-transport-security: max-age=631138519, x-access-level: read-write, x-connection-hash: eaf79ab917d8066d6450f648cb5a2296, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-rate-limit-limit: 300, x-rate-limit-remaining: 300, x-rate-limit-reset: 1433877563, x-response-time: 27, x-runtime: 0.018034, x-transaction: 1558ec954bc257a7, x-xss-protection: 1; mode=block] org.apache.http.client.entity.DecompressingEntity@7d7987ef}
P.S. Happy to move this to a separate thread if this is definitely no longer related to TON (i.e. if once the last chunk is uploaded and I get a 201 itās for certain the file has been assembled back together properly).