5.9.6 SEND
When the SEND command of this service is executed the following steps occur:
The service uses the value of the CONTENT keyword to determine the type of separated values to create:
- If no content value is available, the service defaults to content type of the received content. If no protocol content type is found the service defaults to *CSV.
- If the content value is *CSV, then content type will be application/comma-separated-values
- If the content value is *TEXTCSV, then content type will be text/comma-separated-values
- If the content value is *TSV, then content type will be application/tab-separated-values
- If the content value is *TEXTTSV, then content type will be text/tab-separated-values
- If the content value is not a valid separated value content type then CSV data is created, but the specified content type is sent.
The optional SVHEAD keyword allows a header record to be inserted at the beginning of the data.
The service creates Unicode data using all entries in the list, if there is no list argument then zero length content is created.
The service determines if this Unicode data needs to be archived.
The service creates a HTTP response to return to the remote client.
The optional UAFILE and UAPATH keywords are available to inform the remote client program of a recommended path and filename for the content. LANSA Integrator UserAgent will add these file and path names to the save popup menu on the response panel.
Syntax:
Command |
Keyword |
Value |
Developer notes for Command/Keyword/Value |
SEND |
CONTENT |
|
Optional. Default. Use HTTP protocol content-type. |
*CSV |
Create CSV content. |
||
*TSV |
Create TSV content. |
||
ENCODING |
|
Optional. See ENCODING. |
|
SVQUOTE |
|
Optional. See SVQUOTE. |
|
SVHEAD |
|
Optional. See SVHEAD. |
|
SVEXCLUDE |
|
Optional. See SVEXCLUDE. |
|
NUMBERFORMAT |
|
Optional. See NUMBERFORMAT. |
|
ARCHIVE |
|
Optional. See ARCHIVE. |
|
UAPATH |
value |
Optional. User agent save response path. |
|
UAFILE |
value |
Optional. User agent save response file. |
|
UACACHE |
value |
Optional. Cache-Control max-age. |
|
UADISPOSITION |
value |
Optional. Content-Disposition filename. |
|
CHARSET |
*YES |
Optional. Include charset attribute. |
|
*NO |
Do not include charset attribute. |
||
*TEXT |
Default. Include charset attribute if content is text. |