HTTP Request

Description

 

Send and receive data to a server using the HTTP protocol. 

Properties

Triggers on Completion

URL The URL of the server.
URL Parameters The key values that will get appended to the URL as query parameters. You can use this to provide more context to the request.
Response Type Tell the server to respond in a certain format. By default it is set to respond with application/json to use with the various Dictionary or Array behaviours.
Request Method The type of HTTP request you want to make to send or receive data. Options are GET, POST, PUT, PATCH and DELETE.
Authorization You can authorize your request with basic HTTP authorization using a username and password, or with an access token from the Authenticate OAuth Behaviours.
Body Type Send the server encoded form data or raw text.
form-url-encoded body Key values to send to the server.
Raw Body

Data to send as the body.

Note: If using various Dictionary and Array behaviours, they will be formatted as JSON for use with the Raw Body.

Outputs

Response Header

Outputs a dictionary that represents the HTTP header that relates to a HTTP Response and that doesn't relate to the content of the message.

Response Code

Outputs a HTTP response status code that indicate whether a specific HTTP request has been successfully completed.

Response

Outputs data returned by the server. It can be JSON format or plain text, a value or other format.

Error

Outputs any errors that occur during the request.

 

 

Examples 

Use POST to send the player's score to the server, then use a separate GET request to get the new high score list from the server when you need it.

 

Related

Authenticate OAuth

Connect to Socket

Emit to Socket

Get OAuth Credentials

Get Socket Status

Open URL

Remove OAuth Credentials

Socket Event

Socket.io Client

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.