POST request block
-
I feel like there should be a block to send a POST request to websites to retrieve data. It can be good in a multitude of ways, whilst also having its cons.
For example, you could:
- Make a feedback system using webhooks
- Get information on websites without the user visiting it directly
But bad actors may be able to:
- CSRF / XXS the website
- Run JavaScript on the website for anyone that runs the project
- Rate-limit the website
- Shut down the server from a DoS
I feel like it’s a good idea if CreatiCode can circumvent these cons, one way would be to make it so that only trusted users can use the block, and that we should allow the block into the website if we can get this whole system working; but if we can’t get rid of these issues, I feel we shouldn’t.
-
There is already a block for “fetch web page as markdown” in the cloud extension. Can you give some specific examples for how to use this new POST block?
-
@info-creaticode the POST request block could send data to websites or webhooks, it could be very useful for making feedback boxes or easier blacklists so that moderators of chatrooms on CreatiCode won’t have to be on their project 24/7 and can just watch their webhook take in the responses as the users chat away.
You can also add things such as rate limiting payload signing and validation.
-
@info-creaticode i made a suggestion for POST a while ago, it can be used for good purposes and is also found in other scratch mods as well. It can be used to interact with APIs easier and do things that GET currently cant
-
So what would this block look like? What parameters should it take? Where would the results be stored?
-
@info-creaticode It should be in the cloud section most likely with parameters for what to post and where to send the request to, it will output the error code or status in the Console Panel
-
@notjaldolfyt
renpy or something
-
@info-creaticode said in POST request block:
So what would this block look like? What parameters should it take? Where would the results be stored?
it should allow to send more detailed HTTP requests (GET and POST) and allow all of the options and headers and whatnot.
https://forum.creaticode.com/topic/1255/feature-request-blocks-to-send-http-requests?_=1754798704902 was where i showed what the block could look like -
Thanks for the reminder. Yes, we do have this on our queue, but it is still lower priority compared to other tasks we are working on.
Please understand we have a small team, and we rank tasks based on the potential number of users who would likely use these features, and this POST request block is too advanced for most of our users.
-
@info-creaticode Makes sense, and I will try to keep that in mind when making more suggestions. If you guys need help, I would be glad to help out for free with any issues with code, whether it be frontend or backend. I do HTML, CSS, and JS everyday.
And I’m a bit rusty with PHP, but I know alot about NodeJS and Python, since I work with them alot. I could give some of your guy’s code a look or help to implement things on your queue, just say the word.