The OutboundSeparatedValue handler can send separated values to a remote server using the HTTP protocol.
When the SEND command of this content handler is executed the following steps occur:
1. If the handler is being used with keyword METHOD(GET) then no working list argument is needed. It is also possible to POST without a working list argument.
2. The handler uses the value of the CONTENT keyword to determine the type of separated values to create:
a. If no content value is available, the handler defaults to application/comma-separated-values
b. If the content value is *CSV, then content type will be application/comma-separated-values
c. If the content value is *TEXTCSV, then content type will be text/tab-comma-values
d. If the content value is *TSV, then content type will be application/tab-separated-values
e. If the content value is *TEXTTSV, then content type will be text/tab-separated-values
f. 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 handler creates Unicode data using all entries in the list, if there is no list argument then zero length content is created.
The handler determines if this Unicode data needs to be archived.
Syntax:
|
Example
SEND HANDLER(OutboundSeparatedValue) HOST(…) URI(/cgi-bin/program) #WRKLST
SEND HANDLER(OutboundSeparatedValue) HOST(…) URI(/cgi-bin/program) CONTENT(*TSV) #WRKLST
SEND HANDLER(OutboundSeparatedValue) HOST(…) URI(/cgi-bin/program) CONTENT(text/csv) #WRKLST