GET is a type of a HTTP request where the parameter are stored in the url itself, whilst POST requests stores the data inside the request parameter, and it's format can be changed by using the Content-Type
HTTP header.
To put a data in the body, Create a Map. In that map, you can put whatever data you're sending, this case, is "data"="SENDED"
Use [[Map: ] put key ["data"] value ["SENDED"]]
to add the data to the map
Use the [[RequestNetwork: ] set params [Map: ] to request type [REQUEST_PARAM]]
block to place that map you created as the request body for the post request
Final Code:
variables:
- payload -> Map
Components:
- rn -> RequestNetwork
Code:
[Map: put key ["data"] value ["SENDED"]]
[[RequestNetwork: rn] set params [Map: payload] to request type [REQUEST_PARAM]]
[[RequestNetwork: codes] start network request to method [GET] to url ["https://example.com"] with tag []]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…