Posted 03 July 2013 - 10:25 AM
I know this concept from SL
When in SL a script makes a http-request in the request headers you can find the object position and simulator name in the HTTP Headers
Similarly a CC request could add the turtle ingame location, dimensions and/or ID to the request
But you can already get the position with rednet?
Yeah, kind of, if you have a server-wide rednet range or filled your map with a hundred thousand computers. Also it doesn't help to identify the source of an http request
But you can identify the source by signing the message?
Yeah, kind of I suppose, still only tells about a specific source and not where to find it
But it breaks the 4th wall!
Yup, so does the HTTP Api in general, which is why its disabled by default and has to be enabled
———–
Why is this useful?
Well you can identify where requests come from and it can be used for administrative purposes. Since apparently people refuse to let the bios.lua have more info about the turtle. It would also make a lua-impementation of turtle permissions way easier. And for the receivers of the requests it is clearer where it came from.
The only issue I really see is that people would use it as a cheap way to get the turtles position, but maybe thats why i could have its on boolean to be enabled or so..
When in SL a script makes a http-request in the request headers you can find the object position and simulator name in the HTTP Headers
Similarly a CC request could add the turtle ingame location, dimensions and/or ID to the request
But you can already get the position with rednet?
Yeah, kind of, if you have a server-wide rednet range or filled your map with a hundred thousand computers. Also it doesn't help to identify the source of an http request
But you can identify the source by signing the message?
Yeah, kind of I suppose, still only tells about a specific source and not where to find it
But it breaks the 4th wall!
Yup, so does the HTTP Api in general, which is why its disabled by default and has to be enabled
———–
Why is this useful?
Well you can identify where requests come from and it can be used for administrative purposes. Since apparently people refuse to let the bios.lua have more info about the turtle. It would also make a lua-impementation of turtle permissions way easier. And for the receivers of the requests it is clearer where it came from.
The only issue I really see is that people would use it as a cheap way to get the turtles position, but maybe thats why i could have its on boolean to be enabled or so..