{
"form": {},
"headers": {
"Content-Length": "0",
"Accept-Encoding": "deflate, gzip",
"Accept": "*/*",
"Connection": "close",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Roku/DVP-5.1 (025.01E01195A)",
"Host": "httpbin.org"
},
"data": "",
"url": "http://httpbin.org/post",
"origin": "XX.XXX.XX.XX",
"json": null,
"files": {},
"args": {}
}
port = CreateObject("roMessagePort")
xfer = CreateObject("roURLTransfer")
xfer.SetPort(port)
xfer.SetURL("http://192.168.1.105/echo.php")
xfer.AddHeader("Content-Type","application/x-www-form-urlencoded")
if xfer.AsyncPostFromString("fubar")
msg = Wait(0, port)
if type(msg) = "roUrlEvent"
? msg.GetString()
end if
end if
array(5) {
["User-Agent"]=>
string(28) "Roku/DVP-5.2 (065.02E05040A)"
["Host"]=>
string(13) "192.168.1.105"
["Accept"]=>
string(3) "*/*"
["Content-Type"]=>
string(33) "application/x-www-form-urlencoded"
["Content-Length"]=>
string(1) "5"
}
Http: # 745 done status: 400 time: 141ms request: POST https://api.twitter.com/1.1/statuses/update.jsonThanks for showing me that.
body: oauth_consumer_key=XXX&oauth_nonce=774729778&oauth_signature=Ahegy%XXXX%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1384529999&oauth_token=XXX&oauth_version=1.0&status=TestTweet3959
{
"form": null,
"headers": {
"Content-Length": "5",
"Accept": "*/*",
"Connection": "close",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Roku/DVP-5.2 (065.02E05040A)",
"Host": "httpbin.org"
},
"data": "fubar",
"url": "http://httpbin.org/post",
"origin": "---",
"json": null,
"files": {},
"args": {}
}