Request
Stuff You Need to Know
This component creates an HTTP request, and sends the response data to the output.
How to Configure
Component-specific settings:
- URL address (field) - Enter the URL for the HTTP request here.
- HTTP Method (droplist) - This is the HTTP Method for the request. Options are:
- GET
- POST
- PUT
- DELETE
- Serialization (droplist) - Serialization means translating data structures or object state into a format that can be transmitted and reconstructed later. Types of serialization supported are:
- URL Encoded
- JSON
- Raw
- None
- Download content in chunks? (checkbox) - Checking this box can help when downloading large or binary files
- Keep persistent cookies? (checkbox) - Check if you want to keep your cookies!
- Disable DNS cache (checkbox) - Check to disable DNS cache.
- Custom Headers (fields) - Enter the Header name in the first field and the Header value in the second field, then press Enter to save.
- Cookies (fields) - Enter the Cookie name in the first field and the value of the Cookie in the second field, then press Enter to save.
- HTTP Basic Access Authorization (fields) - Enter a username and password for a Basic Auth, if required.
Standard settings:
Click here to view information on standard settings.
What Happens Next
The HTTP Response returned from the request will be sent to the output of this component. A sample response is shown below:
{ "data": "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}", "status": 200, "headers": { "date": "Sun, 19 Jan 2020 17:57:53 GMT", "content-type": "application/json; charset=utf-8", "content-length": "83", "connection": "close", "set-cookie": [ "__cfduid=d8b836272d31662bf40ba270cd9e0b86e1579456673; expires=Tue, 18-Feb-20 17:57:53 GMT; path=/; domain=.typicode.com; HttpOnly; SameSite=Lax" ], "x-powered-by": "Express", "vary": "Origin, Accept-Encoding", "access-control-allow-credentials": "true", "cache-control": "max-age=14400", "pragma": "no-cache", "expires": "-1", "x-content-type-options": "nosniff", "etag": "W/\"53-hfEnumeNh6YirfjyjaujcOPPT+s\"", "via": "1.1 vegur", "cf-cache-status": "HIT", "age": "415", "accept-ranges": "bytes", "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "server": "cloudflare", "cf-ray": "557ab18fc829e3ca-ATL" }, "host": "jsonplaceholder.typicode.com" }
Note that the response will specifically be put into the format shown above, with the following structure:
{ "data": String, "headers": Object, "status": Number, "host": String }
Want to Know More?
Check out this post on TutorialsPoint on HTTP Requests.