Abstract
Since Scratch 2.0 is online, why not add in the possibility of having HTTP requests? I would add in just POST and GET. That's the most used, and the other requests have not very much use for us Scratchers.
Suggested blocks
Note: Both blocks' dropdowns have [get, post] as values.
(request <- [get v] to [scratch.mit.edu])Returns the result of the statement, in all text MIME types(that's not including images, svgs, etc until/if that's supported).
request -> [get v] to [scratch.mit.edu]Just executes the statement without returning a result.
Last edited by Greatdane (2012-05-20 17:51:52)
Offline
A few issues: WAY too complicated to a new Scratcher. It would be rather easy to kill bandwidth, honestly. Either way, it would be more effective to just make HTTP cloud-variables or whatever.
Offline
bobbybee wrote:
A few issues: WAY too complicated to a new Scratcher. It would be rather easy to kill bandwidth, honestly. Either way, it would be more effective to just make HTTP cloud-variables or whatever.
I'm not sure it's that complicated. It's like saying, "Hey, you can just get the data of a website from a block!" I'm not sure about bandwith, though. What do you mean by HTTP cloud-variable?
Last edited by Greatdane (2012-05-20 18:05:51)
Offline
I'm not sure I understand what this means... are you saying you could turn a Scratch game into holding data from another website? Like you could read something from another page?
1) I think that would take a while to work into Scratch
2) Think of how much data/space in a project it would take up: having to update to the site.
Offline
Greatdane wrote:
bobbybee wrote:
A few issues: WAY too complicated to a new Scratcher. It would be rather easy to kill bandwidth, honestly. Either way, it would be more effective to just make HTTP cloud-variables or whatever.
I'm not sure it's that complicated. It's like saying, "Hey, you can just get the data of a website from a block!" I'm not sure about bandwith, though. What do you mean by HTTP cloud-variable?
You think a new Scratcher knows what a GET request is? And about bandwidth, I mean a script like:
when gf clicked forever request [HTTP v] from [scratch.mit.edu] end
Offline
I do not support.
It would be rather confusing for new Scratchers. Most have no idea what a GET or POST request is. Keep in mind that children who have no programming experience will be using Scratch.
It's also unnecessary, since Scratch is not intended for web programming.
Offline
I don't think you should be able to POST from Scratch. A drop too risky.
But a (get contents of page [scratch.mit.edu]) would be great.
Offline