Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Feedback
  3. Feature request: blocks to send HTTP requests

Feature request: blocks to send HTTP requests

Scheduled Pinned Locked Moved Feedback
feature-request
5 Posts 3 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by
    #1

    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):
    29d721ed-8d02-46e3-b0e8-55aa1dde9145-image.png
    This would allow you to do what the website would do, here is basically the equivalent:
    5a08bb1f-6929-4cdc-a5ba-16ee5c82716a-image.png

    #LLJW
    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

    CreatiCodeI Tyller_T 2 Replies Last reply
    0
    • JaecadeJnightJ JaecadeJnight

      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):
      29d721ed-8d02-46e3-b0e8-55aa1dde9145-image.png
      This would allow you to do what the website would do, here is basically the equivalent:
      5a08bb1f-6929-4cdc-a5ba-16ee5c82716a-image.png

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @jeffreyrb03-gmail

      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.

      JaecadeJnightJ 1 Reply Last reply
      1
      • CreatiCodeI CreatiCode

        @jeffreyrb03-gmail

        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.

        JaecadeJnightJ Offline
        JaecadeJnightJ Offline
        JaecadeJnight
        Mod Helper
        wrote on last edited by
        #3

        @info-creaticode Got it, thx!

        #LLJW
        <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

        1 Reply Last reply
        0
        • JaecadeJnightJ JaecadeJnight

          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):
          29d721ed-8d02-46e3-b0e8-55aa1dde9145-image.png
          This would allow you to do what the website would do, here is basically the equivalent:
          5a08bb1f-6929-4cdc-a5ba-16ee5c82716a-image.png

          Tyller_T Offline
          Tyller_T Offline
          Tyller_
          trusted helpers
          wrote on last edited by
          #4

          @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

          <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
          </div>

          JaecadeJnightJ 1 Reply Last reply
          1
          • Tyller_T Tyller_

            @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

            JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by
            #5

            @tyller_ cool

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            1 Reply Last reply
            0
            • JaecadeJnightJ 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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • CreatiCode