HTTP Sender
This destination connector sends an HTTP request to an external web server. The method, parameters, and headers can all be fully customized. Both Basic and Digest authentication (preemptive or reactive) are supported. Sending requests through a proxy server is also supported, even when using HTTPS. The HTTP payload can be written out as raw bytes, or converted using a specified charset. Responses can be automatically converted to XML, allowing multipart payloads to be parsed in a consistent and easy-to-use way. Additional options are available with the SSL Manager extension.
Supported property groups:
Item | Name | Default Value | Description |
---|---|---|---|
A | URL | The URL of the HTTP server to send each message to. | |
B | Use Proxy Server | No | If enabled, requests are forwarded to the proxy server specified in the address/port fields below. |
C | Proxy Address | The domain name or IP address of the proxy server to connect to. | |
D | Proxy Port | The port on which to connect to the proxy server. | |
E | Method | POST | The HTTP operation (POST / GET / PUT / DELETE / PATCH) to send for each message. |
F | Multipart | No | If enabled, the content is first written to a local temp file and is then wrapped in a single file part inside a multipart/form-data payload. |
G | Send Timeout (ms) | 30000 | Sets the socket timeout (SO_TIMEOUT) in milliseconds to be used executing the method. A timeout value of zero is interpreted as an infinite timeout. |
H | Response Content | Plain Body |
|
I | Parse Multipart | Yes | Applies only to Response Content XML Body.
|
J | Include Metadata | No | Applies only to Response Content XML Body.
|
K | Binary MIME Types | application/.* (?<!json|xml)$| image/.*|video/.*| audio/.* | When a response comes in with a Content-Type header that matches one of these entries, the content is encoded into a Base64 string.
|
L | Authentication | No | If enabled, a Basic or Digest Authorization header is automatically added to the request. |
M | Authentication Type | Basic | Select either Basic or Digest authentication type.
|
N | Username | The username to use to authenticate to the HTTP server. | |
O | Password | The password to use to authenticate to the HTTP server. | |
P | Query Parameters | Use Table |
When using the Use Table option above, entries in this table will automatically be added to the request URI as query parameters. Multiple parameters with the same name are supported. |
Q | Headers | Use Table |
When using the Use Table option above, entries in this table will be added to the request as HTTP headers. Multiple headers with the same name are supported |
R | Content Type | text/plain | The HTTP message body MIME type to use. If application/x-www-form-urlencoded is used, the query parameters specified above will be automatically encoded into the request body. |
S | Data Type | Text |
|
T | Charset Encoding | UTF-8 | Select the character set encoding to send with the Content-Type header, or Default to use the default character set encoding for the JVM Mirth® Connect is running on.
|
U | Content | The actual payload to send. Only applicable for entity-enclosing requests (POST / PUT / PATCH). Velocity Variable Replacement is supported here. |