HTTP Request
When this node is reached, an HTTP request will be executed. The HTTP request node supports:
All common request methods (
GET
,POST
,PUT
,DELETE
,PATCH
, etc.);Query parameters (expressions);
Basic authentication and Client certificate authentication;
Custom request headers (expressions);
Custom response headers (mapped to fields);
If applicable, a request body (text, file or richtext);
Response body (text, file or richtext).
The type of request, and the HTTP request details are all specified in the node’s properties. Some properties are only needed for certain request types, as is displayed in the example below.
The properties:
Item | Options | Description |
Name | Name of the node. This name is generated by WEM and describes the HTTP request that will be performed. The property cannot be edited by hand. | |
URL | The URL that is used for the HTTP request (the server to which the request is sent) | |
Method |
| The HTTP request method that is used in this node |
Follow Redirect | Yes/No (checkbox) | |
Authentication | - None - Basic Authentication - Client Certificate | Specifies if authentication is needed for the request. And if so, what type of authentication. When the ‘Basic Authentication’ is specified, a simple username/password suthentication is used. In this case the Username and Password properties are displayed. When the ‘Client Certificatie’ authentication is used, the user is asked to specify the client certificate. The certificate must be available in WEM. |
Request Body | A custom request body can be defined | |
Response Body | A custom response body can be defined | |
Edit Query fields | ||
Edit Request Headers | ||
Edit Response Headers |
The Web request node can have several exits. There are two pre-defined exits:
Default exit
Error
This is the exit that is used when the HTTP request somehow fails.
Besides these pre-defined exits, it is possible to define an exit for every possible status code the HTTP request returns. See e.g. or for an overview of the possible status codes.
When an error status code is used to define an exit, this exit will be used instead of the default Error exit.
Exits The HTTP request node always as a Default exit
and an Error
exit. But you can add edditional exits when needed. These exits are based on the HTTP status codes: you can add an exit for every status code that you need.
Last updated