Download a file (GET)(Deprecated)
Purpose
Deprecated since version 9.1.5. Use this API instead: Download files (POST).
Downloads job data for a job.
Request
HTTP Request Field | Field format/value | Notes® |
---|---|---|
HTTP Method | GET | |
URL | http://<hostname>:<port>/platform/webservice/pacclient/file/<ID> | <ID>: a positive integer |
Content-Type | text/plain | |
Accept | text/plain | |
Cookie | platform_token=<token> | <token>: returned from logon |
Body |
OR
You can also compress files before downloading by specifying a compression command. Format to compress files before downloading:
For example, to compress the file myfile with gzip for download:
|
The file path. A relative path is interpreted relative to the job directory. To compress a file before downloading it, use | Where compression_command is: Command for the compression program to use to create compressed files to download. Files are compressed, then downloaded to the client. The client must decompress the files after download. The compression program must be installed on the Platform Application Center server and must be in the system path. |
Response
HTTP Response | Field format/value | Notes |
---|---|---|
Response code | "200" - connection ok; otherwise connection failed | |
Success Message | File content in bytes. | |
Failure Message | Empty | Error details are in the log file. |