Open
Description
I followed the README exactly as it explains sending off multi-part uploads to the TON API. However I am always getting a 403
error response with no error messages.
$resp = $conn->__call(
'ton/bucket/BUCKET?resumable=true',
[[
'bucket' => 'ta_partner,
'X-Ton-Content-Type' => 'text/plain',
'X-Ton-Content-Length' => 1023654789,
'X-Ton-Expires' => 'Sat, 31 Jun 2016 23:01:50 GMT',
'Content-Length' => 0,
'Content-Type' => 'text/plain',
]]
);
However if I mock this EXACT call with twurl
the operation is successful...
twurl -t -H ton.twitter.com /1.1/ton/bucket/ta_partner?resumable=true -X POST \
-A "X-TON-Content-Type: text/plain" \
-A "X-TON-Content-Length: 1023654789" \
-A "X-TON-Expires: Sat, 31 Jun 2016 23:01:50 GMT"\
-A "Content-Length: 0" \
-A "Content-Type: text/plain"
the request is successful.
Any ideas here?