Feature request: blocks to send HTTP requests
-
I emailed the CreatiCode about this suggestion back when there was a bug that didn’t let me make a forum account, but I’ll also put it here along with some code to make it easier.
Blocks that allow you to send HTTP requests would be a really cool, useful, and important feature. HTTP requests are the main way to communicate between a client and a server, for example, browsers send GET HTTP requests to websites in order to display websites to you.
I want HTTP request blocks to be added because I have a project that needs to communicate with my website and its database in order to make accounts and login and do stuff like that.
While there does exist a block (get website as markdown(https://google.com)) that basically sends a GET request to a website and converts the returned HTML to markdown, it isn’t useful for most logical cases, and can’t send information to a website, only can get a website.So HTTP requests work like this: you have to send one to a URL, and it is either a POST or GET (there are others that exist but aren’t common used), and you send other stuff too like response body and response headers.
https://reqbin.com allows you to send HTTP requests of all kinds, so when making the block, it should basically allow you to do everything that site does.
I have made a mockup of what the block could look like (its in the Cloud section):

This would allow you to do what the website would do, here is basically the equivalent:

-
I emailed the CreatiCode about this suggestion back when there was a bug that didn’t let me make a forum account, but I’ll also put it here along with some code to make it easier.
Blocks that allow you to send HTTP requests would be a really cool, useful, and important feature. HTTP requests are the main way to communicate between a client and a server, for example, browsers send GET HTTP requests to websites in order to display websites to you.
I want HTTP request blocks to be added because I have a project that needs to communicate with my website and its database in order to make accounts and login and do stuff like that.
While there does exist a block (get website as markdown(https://google.com)) that basically sends a GET request to a website and converts the returned HTML to markdown, it isn’t useful for most logical cases, and can’t send information to a website, only can get a website.So HTTP requests work like this: you have to send one to a URL, and it is either a POST or GET (there are others that exist but aren’t common used), and you send other stuff too like response body and response headers.
https://reqbin.com allows you to send HTTP requests of all kinds, so when making the block, it should basically allow you to do everything that site does.
I have made a mockup of what the block could look like (its in the Cloud section):

This would allow you to do what the website would do, here is basically the equivalent:

Thanks for the write-up. This feature is currently queued since it involves both front-end and back-end, and most of our users (k-12 students) may not use this feature.
-
Thanks for the write-up. This feature is currently queued since it involves both front-end and back-end, and most of our users (k-12 students) may not use this feature.
@info-creaticode Got it, thx!
-
I emailed the CreatiCode about this suggestion back when there was a bug that didn’t let me make a forum account, but I’ll also put it here along with some code to make it easier.
Blocks that allow you to send HTTP requests would be a really cool, useful, and important feature. HTTP requests are the main way to communicate between a client and a server, for example, browsers send GET HTTP requests to websites in order to display websites to you.
I want HTTP request blocks to be added because I have a project that needs to communicate with my website and its database in order to make accounts and login and do stuff like that.
While there does exist a block (get website as markdown(https://google.com)) that basically sends a GET request to a website and converts the returned HTML to markdown, it isn’t useful for most logical cases, and can’t send information to a website, only can get a website.So HTTP requests work like this: you have to send one to a URL, and it is either a POST or GET (there are others that exist but aren’t common used), and you send other stuff too like response body and response headers.
https://reqbin.com allows you to send HTTP requests of all kinds, so when making the block, it should basically allow you to do everything that site does.
I have made a mockup of what the block could look like (its in the Cloud section):

This would allow you to do what the website would do, here is basically the equivalent:

@jeffreyrb03-gmail I have found out how to send post requests but haven’t found how to retrieve but you could, though it is definetly a security issue because it’s running html tags (except the script tag and javascirpt in a hyperlink href don’t work, but setting all styles to initial does work and nuke the page into text)
If you open a chat window in widgets and add a message containing html tags, they will format, so using
<input type="text" name="data" value="Hello, Server!"> <button type="submit">Send Request</button> </form> <iframe name="responseFrame" style="display: none;"></iframe>Works, except you’ll have to do some magic to make that show to a variable, though it’s very much a security issue still
-
@jeffreyrb03-gmail I have found out how to send post requests but haven’t found how to retrieve but you could, though it is definetly a security issue because it’s running html tags (except the script tag and javascirpt in a hyperlink href don’t work, but setting all styles to initial does work and nuke the page into text)
If you open a chat window in widgets and add a message containing html tags, they will format, so using
<input type="text" name="data" value="Hello, Server!"> <button type="submit">Send Request</button> </form> <iframe name="responseFrame" style="display: none;"></iframe>Works, except you’ll have to do some magic to make that show to a variable, though it’s very much a security issue still
@tyller_ cool
-
J JaecadeJnight referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login