HTTP component
The HTTP component is used to send requests to an HTTP(S) endpoint. It includes the message (body and headers) it receives at its input in the request.
Basic configuration
The HTTP component has the following basic configuration options:
URL
The URL to the HTTP(S) endpoint for the request.
Read more about using variables on this reference page.
Generally, when you see this in the body after an HTTP component it indicates something is wrong with the (value of the) header that's used for the URL.
Validate URL
Use the 'Validate Url' button to verify the URL you specified is valid. This doesn't work when using a header or tenant variable for the (dynamic) url, since it's value isn't known at the time of validation.
Sometimes, a URL cannot be properly validated by the frontend or backend. To address this, you can set a header with the name CamelHttpUri and the desired URL as the value. This header, when set before the HTTP component, will override the URL defined in the configuration.
HTTP Method
The type of HTTP request.
Options
GET(default)HEADPOSTPUTDELETEPATCHDELETE with bodyOPTIONSTRACE
DELETE with body is deprecated.
The HTTP component filters out headers conform the HTTP/1.1 - RFC 9110 standard.
By default DELETE doesn't send a body, use DELETE with body instead.
Authentication method
The authentication method used for the HTTP(S) endpoint.
Options
None(default)BasicNTLMMutual SSL
Authentication username
The username for the selected authentication method.
- Only available when Authentication method is set to
BasicorNTLM.
Authentication password
The password for the selected authentication method.
- Only available when Authentication method is set to
Basic,NTLMorMutual SSL. - When Authentication method is set to
Mutual SSLthis field will set the password of the private certificate.
Authentication preemptive?
Set to true if the server supports preemptive Basic Authentication, meaning that credentials are sent immediately, even if the server doesn't request them.
- Only available when Authentication method is set to
Basic.
Authentication domain
The domain for the selected authentication method.
- Only available when Authentication method is set to
NTLM.
Authentication host
The host for the selected authentication method.
- Only available when Authentication method is set to
NTLM.
Authentication certificate
The password protected private key/certificate (store) that will be used with the authentication method.
- Only available when Authentication method is set to
Mutual SSL. - We support files of the PKCS #12 format.
Exclude headers
Sets headers to be excluded from requests made by the HTTP component. Specify multiple headernames by splitting them with a vertical bar |. Use it to prevent large headers or sensitive data in headers to be sent to the endpoint.
If you use a header for the URL field don't exclude that header here.
Use error route?
By default HTTP errors will be sent to the FailedExchange component in the Error Route. Disable this option if the endpoint has a redirect or you don't want HTTP errors to be handled by the Error Route.
Read more about advanced Error Handling and Management by Exception in the Management by Exception guide.
Advanced configuration
The HTTP component has the following advanced configuration options: