Attention: This topic contains Product-sensitive Programming Interface
and Associated Guidance Information.
You can use the
decode function of the converter program to modify requests passed to DFHWBTTA.
- When an HTML form is submitted by the client using one of the buttons
that represent an attention key, the request contains a field indicating which
button was selected. You can simulate the effect of a different attention
key by modifying the request. Change the value of the field to the desired
attention key, or insert a new field after the one transmitted by the Web
client.
- When an HTML form is submitted by the client, the DFH_CURSOR field
contains the name of the field that contains the cursor. You can simulate
the effect of a different cursor position by modifying the request. Change
the value of the DFH_CURSOR field to contain a different
field name, or insert a new DFH_CURSOR field after the one
transmitted by the Web client.
- You can select the next transaction ID by changing the DFH_NEXTTRANSID.n variables
in the continuation request. You can insert or delete a variable, or change
the value of one of them. For more information about how these fields are
used to determine the next transaction ID, see The transaction ID in an HTML form.
Do not modify the value of
DFH_STATE_TOKEN.
You
can use the encode function of the converter program to modify the output
from DFHWBTTA:
- The response is in a buffer that begins with a 32-bit unsigned number
that specifies the length of the buffer. The rest of the buffer is the HTTP
response. The HTML in the response is that corresponding to the output BMS
map or 3270 data stream from the transaction program.
- The HTTP headers in the HTTP response are generated automatically by DFHWBTTA.
The headers generated by DFHWBTTA are:
- Content-type: text/html
- Content-length: <length of the entity body>
- Pragma: no-cache
- Connection: Keep-Alive (if this is an HTTP 1.0 persistent connection)
If any additional headers are required, the Encode function of the converter
should be used to add them to the HTTP response.