I am also getting this on intermediate requests:
-> "HTTP/1.1 400 Bad Request\r\n"
-> "cache-control: no-cache\r\n"
-> "connection: close\r\n"
-> "content-length: 0\r\n"
-> "date: Tue, 10 Nov 2015 21:20:11 GMT\r\n"
-> "server: tsa_b\r\n"
-> "set-cookie: guest_id=v1%3A144719041188757197; Domain=.twitter.com; Path=/; Expires=Thu, 09-Nov-2017 21:20:11 UTC\r\n"
-> "strict-transport-security: max-age=631138519\r\n"
-> "x-connection-hash: ca66780c0e4a613787342ace7bba10d9\r\n"
-> "x-content-type-options: nosniff\r\n"
-> "x-response-time: 27\r\n"
-> "x-tsa-request-body-time: 1668\r\n"
-> "\r\n"
reading 0 bytes...
The requests look like this:
[INFO ] twitter-upload:2871 - Uploading chunk #70 (bytes 73400320 to 74448895 out of 218255244
opening connection to ton.twitter.com...
opened
<- "PUT https://ton.twitter.com HTTP/1.1\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Type: text/plain\r\nContent-Length: 1048576\r\nContent-Range: bytes 73400320-74448895/218255244\r\nAuthorization: OAuth oauth_body_hash=\"02..G4%3D\
", oauth_consumer_key=\"YOi6D....Opb\", oauth_nonce=\"R..t4\", oauth_signature=\"D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1447190411\", oauth_token=\"15...z0\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: ton.twitter.com\r\n\r\n"
<- "d6839621
Update: Now I am getting permanent redirects:
-> "HTTP/1.1 308 Permanent Redirect\r\n"
-> "connection: close\r\n"
-> "content-length: 0\r\n"
-> "date: Tue, 10 Nov 2015 21:40:04 GMT\r\n"
-> "range: bytes=0-3145727\r\n"
-> "server: tsa_b\r\n"
-> "set-cookie: guest_id=v1%3A144719160355709640; Domain=.twitter.com; Path=/; Expires=Thu, 09-Nov-2017 21:40:04 UTC\r\n"
-> "strict-transport-security: max-age=631138519\r\n"
-> "x-connection-hash: 8756b608bd3c015c29137eaf755e3c2e\r\n"
-> "x-content-type-options: nosniff\r\n"
-> "x-rate-limit-limit: 50\r\n"
-> "x-rate-limit-remaining: 39\r\n"
-> "x-rate-limit-reset: 1447192141\r\n"
-> "x-response-time: 609\r\n"
-> "x-tsa-request-body-time: 1609\r\n"
-> "\r\n"
reading 0 bytes...
-> ""
read 0 bytes