twitbod = http.GetParams("bodyParams").encode()
http.PostFromStringWithTimeout( twitbod, 10 )
{
"data": "",
"json": null,
"origin": "XX.XX.XX.XX",
"form": {
"oauth_consumer_key": "XXXXXXXX",
"oauth_signature_method": "HMAC-SHA1",
"status": "TestTweet1719",
"oauth_timestamp": "1384715839",
"oauth_nonce": "740051602",
"oauth_signature": "XXXXXXXXX",
"oauth_version": "1.0",
"oauth_token": "XXXXXXXXXX"
},
"args": {},
"url": "http://httpbin.org/post",
"headers": {
"User-Agent": "Roku/DVP-5.1 (025.01E01195A)",
"Content-Type": "application/x-www-form-urlencoded",
"Connection": "close",
"Accept": "*/*",
"Content-Length": "272",
"Host": "httpbin.org",
"Accept-Encoding": "deflate, gzip"
},
"files": {}
}
"squirreltown" wrote:
Thanks Chris, just to clarify, when you say URL, do you mean The whole request Including the POST body or just the actual address part?
{
"data": "oauth_consumer_key=XXX&oauth_nonce=946393881&oauth_signature=XXX&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1384961231&oauth_token=XXX&oauth_version=1.0&status=TestTweet2711",
"url": "http://httpbin.org/post",
"origin": "XX.XX.XX.XX",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "*/*",
"Host": "httpbin.org",
"Accept-Encoding": "deflate, gzip",
"Content-Length": "304",
"User-Agent": "Roku/DVP-5.2 (025.02E03264A)",
"Connection": "close"
},
"form": null,
"json": null,
"files": {},
"args": {}
}
"squirreltown" wrote:
Oddly, the string is exactly the same there is no additional encoding, the Roku just wanted it done again for some reason.
oauth_consumer_key%3DXXX%26oauth_nonce%3D946393881%26oauth_signature%3DXXX%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1384961231%26oauth_token%3DXXX%26oauth_version%3D1.0%26status%3DTestTweet2711
"RokuChris" wrote:
...which may allow the request to succeed, but will not be interpreted the way you want by the server.
oauth_consumer_key%3DXXXX%26oauth_nonce%3D296381621%26oauth_signature%3DXXXD%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1384985154%26oauth_token%3D3XXXX%26oauth_version%3D1.0%26status%3DTestTweet554
"squirreltown" wrote:"RokuChris" wrote:
...which may allow the request to succeed, but will not be interpreted the way you want by the server.
well thats a problem if i have to encode the string improperly to get the Roku to send it properly, that wont work,
foo1 = "abc&d"
foo2 = "efg=h"
foo1=abc&d&foo2=efg=h
foo1%3Dabc%26d%26foo2%3Defg%3Dh
foo1=abc%26d&foo2=efg%3Dh