Blocks Area
Requests
π¨ Requests – Your Miniaturized “Web Browser“
What it is: Blocks for making web requests (HTTP).
What it does: Communicates with websites and online services.
Example: Asking a website for the time or weather.
π It’s the robot’s web browser.

Β
π§© Fun Guide to HTTP Requests Blocks (Clu-blocks Pro)
π Important! Request blocks let your robot send and receive data from the internet β like asking a website for weather info, sending sensor data to a server, or chatting with an online app!
π Sending Requests
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 1 | response value towards "http://Clu-Bots.com" Conduct get Request and get result | Sends a GET request to a website | get, head, delete | – get: asks for data– head: gets headers only– delete: removes data |
| 2 | response value towards "http://Clu-Bots.com" Conduct post Request RequestContent "application/json" and get result | Sends a POST request with content | post, put, patch | – post: sends new data– put: updates data– patch: edits part of it |
| 3 | RequestContent | Sets the content to send | β | Usually JSON, text, or form data β like { "temp": 22 } |
π₯ Handling Responses
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 4 | get Response content from response | Reads the reply from the server | Response content, JSON deserialization, Status Code, Bin content, encode | – Response content: plain text– JSON deserialization: turns reply into usable data– Status Code: shows success/failure– Bin content: raw bytes– encode: encoding type |
π§ Quick Tips for Students
- Use GET to ask for info β like weather, jokes, or sensor data.
- Use POST to send info β like scores, logs, or commands.
- Use JSON format for smart data β itβs like sending a mini-dictionary.
- Use Status Code to check if it worked β 200 = success, 404 = not found.
- Use Response content to show results β great for printing or displaying on LCD/OLED.