Example: Retrieving a file from a filespace
You can retrieve a file from a file space by submitting an HTTP request to the WebSphere® MQ File Transfer Edition Web Gateway. The Web Gateway provides the ability to download a file using the HTTP protocol.
About this task
To download a file from a file space, you must be the owner of the file space or have the security role wmqfte-admin. A successful request returns an HTTP status code of 200 and the file.
The following steps describe how to submit a request. In this example, the server hosting the WebSphere MQ File Transfer Edition Web Gateway is example.com. The file that is downloaded is Accounts.csv and the transfer ID of the transfer that sent the file to the file space is 4142452b345f4d2e3c2a333d4ed3e4de43453bc2344a2020. The name of the file space that contains the file is john, and the user requesting the information is authorized to access this file space.