I’m uploading a video of 10MB (MP4). All partitial uploads and INIT seems good. The finalize returns an unknown error to me.
Request status: 202
POST /1.1/media/upload.json HTTP/1.1
Host: upload.twitter.com
Accept: */*
Authorization: OAuth oauth_consumer_key="p3YmsQLQ8AykCjbPnXMiIHWLt",oauth_nonce="609dc1a70ca334cde4aaea4a7203c519",oauth_signature="V9wSnmw08MyUlmY0IHZZB9rlvPo%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1463469517",oauth_token="23585732-UoAlk92K4xMVfrYFFR2ohi1rMJFtL5nAtC241vQdN",oauth_version="1.0"
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Length: 62
Media INFO from INIT command
Array
(
[media_id] => 732470362185732096
[media_id_string] => 732470362185732096
[expires_after_secs] => 86399
)
Request status: 204
POST /1.1/media/upload.json HTTP/1.1
Host: upload.twitter.com
Accept: */*
Authorization: OAuth oauth_consumer_key="p3YmsQLQ8AykCjbPnXMiIHWLt",oauth_nonce="609dc1a70ca334cde4aaea4a7203c519",oauth_signature="eJ8eS6aMZ8ryWcsvN%2BzpTn5QeOc%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1463469517",oauth_token="23585732-UoAlk92K4xMVfrYFFR2ohi1rMJFtL5nAtC241vQdN",oauth_version="1.0"
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Length: 5000460
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----609dc1a70ca334cde4aaea4a7203c519; boundary=----------------------------5d28ca7fc293
Request status: 204
POST /1.1/media/upload.json HTTP/1.1
Host: upload.twitter.com
Accept: */*
Authorization: OAuth oauth_consumer_key="p3YmsQLQ8AykCjbPnXMiIHWLt",oauth_nonce="8dc15ea057450ded5a29301a4bafa109",oauth_signature="NMpWuvNplqr3LMpN9zCqzFbFrqA%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1463469522",oauth_token="23585732-UoAlk92K4xMVfrYFFR2ohi1rMJFtL5nAtC241vQdN",oauth_version="1.0"
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Length: 5000460
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----8dc15ea057450ded5a29301a4bafa109; boundary=----------------------------65463a7e48b1
Request status: 204
POST /1.1/media/upload.json HTTP/1.1
Host: upload.twitter.com
Accept: */*
Authorization: OAuth oauth_consumer_key="p3YmsQLQ8AykCjbPnXMiIHWLt",oauth_nonce="e9fa854cedb2f6dde2165ab1c49f15b8",oauth_signature="FRRP7hd5Ny%2BxBP5KgbCCFeqBqgY%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1463469524",oauth_token="23585732-UoAlk92K4xMVfrYFFR2ohi1rMJFtL5nAtC241vQdN",oauth_version="1.0"
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Length: 1440082
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----e9fa854cedb2f6dde2165ab1c49f15b8; boundary=----------------------------a60359cfc737
Request status: 400
POST /1.1/media/upload.json HTTP/1.1
Host: upload.twitter.com
Accept: */*
Authorization: OAuth oauth_consumer_key="p3YmsQLQ8AykCjbPnXMiIHWLt",oauth_nonce="1cf02f9bbecd4e300b8d411ebe9a2f88",oauth_signature="MG8bGilFUc3Lq%2FjgRt8Ci%2BC3oF4%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1463469526",oauth_token="23585732-UoAlk92K4xMVfrYFFR2ohi1rMJFtL5nAtC241vQdN",oauth_version="1.0"
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Length: 44
Array
(
[request] => /1.1/media/upload.json
[error] => InvalidContent.
)