Semaphorism 0 Posted May 23, 2015 Share Posted May 23, 2015 I am simply lost on how to make a http request, sending json, and receiving json. I am unsure how to get the data from the http request. any help? Quote Link to post Share on other sites
0 Sangar 92 Posted May 23, 2015 Share Posted May 23, 2015 Grab an internet card, then do something like this (no guarantee for correctness, but you get the idea). local inet = require("internet") local req = inet.request("http://example.com", "json={your:'json'}") local serverJson = "" for line in req do serverJson = serverJson .. line .. "\n" end -- do something with serverJson Quote Link to post Share on other sites
I am simply lost on how to make a http request, sending json, and receiving json. I am unsure how to get the data from the http request. any help?
Link to post
Share on other sites