Download a file
Downloads a file from a remote application and sends it to a back-end application using HTTP or HTTPS as the transport protocol.
With the GET HTTP Body/{FileName} method, a trading partner can pull a file (using any REST client or application supporting REST) from AS4 Microservice.
Method | Resource | URI | Description |
---|---|---|---|
GET |
HTTP Body |
[http/https]://[ip address of the machine]:[port]/[Receiver URI]/[Virtual Path]/[File Name] |
Downloads a file from the virtual path mentioned in the exchange profile. |
Download a file example
The following example shows a successful request and response. In this example, the
filename to be downloaded is ExampleFileName.txt
.
HTTP file download request
GET http://9.109.114.193:31231/httpreceiver/path1/ExampleFileName.txt
HTTP file download response
HTTP response with file content as HTTP body.