Hi guys! I’m kind of at my wits end, trying to find the difference between the curl and the twul calls. Please see below.
twurl/ton-upload:
<- "POST https://ton.twitter.com/1.1/ton/bucket/ta_partner HTTP/1.1
Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept: /
User-Agent: OAuth gem v0.4.7
Content-Type: text/comma-separated-values
Content-Length: 12261
X-Ton-Expires: Sun, 20 Mar 2016 16:12:39 GMT
Authorization: OAuth oauth_body_hash=“REDACTED”, oauth_consumer_key=“REDACTED”, oauth_nonce=“REDACTED”, oauth_signature=“REDACTED”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“REDACTED”, oauth_token=“REDACTED”, oauth_version=“1.0"
Connection: close\r\nHost: ton.twitter.com\r\n\r\n”
curl:
POST /1.1/ton/bucket/ta_partner HTTP/1.1
Host: ton.twitter.com
Accept: /
Content-Length: 12261
X-TON-Expires: Tue, 15 Mar 2016 16:12:30 GMT
Authorization: OAuth oauth_consumer_key=“REDACTED”, oauth_nonce=“REDACTED”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“REDACTED”, oauth_version=“1.0”, oauth_token=“REDACTED”, oauth_signature="REDACTED%3D"
Content-Type: text/comma-separated-values; boundary=------------------------25aceae34d75d12f
First difference I can see is oauth_body_hash, but I can’t seem to find any twitter documentationas to what I’m supposed to put there. There’s also the “boundary” added by curl.
Any thoughts as to what I’m missing here?