OK so i am constructing a header string. Lets say this is the original string, the value of the header Authorization.
oauth_timestamp=1385233995&oauth_version=1.0
The return from the echo server gives me this:
"Authorization"= "oauth_timestamp=1385233995&oauth_version=1.0"
either the Roku or the echo server is putting quotes around the parameter and the value.
Now, I need commas in between parameters instead of &, and quotes around the values, so I strReplace as needed with chr(34). What i get back from the echo server is this:
"Authorization"= "oauth_timestamp=\"1385233995", oauth_version=\"1.0"
The quotes I'm adding are escaped when they echo back, but the roku/echoserver added ones are not. I'm a little confused what is happening here, whether this is normal and why the chr(34) quotes are returning differently than the others and how they will be interpreted.
thanks for any guidance on this.
also if i want quotes around the values, is it correct to have the double quotes here at the end?
"Authorization"= "oauth_timestamp=\"1385233995", oauth_version=\"1.0\""
P.s. This is what I'm trying to duplicate, as shown on the Twitter dev page:
POST /1/statuses/update.json?include_entities=true HTTP/1.1
Accept: */*
Connection: close
User-Agent: OAuth gem v0.4.4
Content-Type: application/x-www-form-urlencoded
Authorization:
OAuth oauth_consumer_key="xvz1evFS4wEEPTGEFPHBog",
oauth_nonce="kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg",
oauth_signature="tnnArxj06cWHq44gCs1OSKk%2FjLY%3D",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1318622958",
oauth_token="370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb",
oauth_version="1.0"
Content-Length: 76
Host: api.twitter.com
Kinetics Screensavers