
Methods
The interface contains the following methods. These are partly the same as in the server role.
|
ESCAPE_HTML |
See IF_HTTP_SERVER |
|
ESCAPE_URL |
See IF_HTTP_SERVER |
|
UNESCAPE_URL |
See IF_HTTP_SERVER |
|
AUTHENTICATE |
Authenticates the HTTP server. If an SAP System is being used, this method allows authentication via the SAP logon screen. User, password, client, and language must be entered. Otherwise, authentication proceeds in accordance with the HTTP server in question. |
|
APPEND_FIELD_URL |
See IF_HTTP_SERVER |
|
CREATE_ABS_URL |
See IF_HTTP_SERVER |
|
CREATE_REL_URL |
See IF_HTTP_SERVER |
|
CLOSE |
Closes the HTTP connection. This method is called when the HTTP connection, that is, the control block, is no longer needed. |
|
RECEIVE |
Enters the response in the RESPONSE structure.This method must be called for every HTTP request, so that the data received can be further processed. |
|
GET_LAST_ERROR |
See IF_HTTP_SERVER |
|
LISTEN |
Only used if several requests must be sent at the same time. When a response arrives, this method is used to determine which request it corresponds to. Then, the method RECEIVE (see above) can be called. |
|
SEND |
When the REQUEST attribute is filled with the request data, the HTTP request can be sent to the HTTP server, by calling the method SEND.The method converts the data to a HTTP data stream and sends the data stream to the server. The timeout for the waiting period for the response is communicated to the method in the form of seconds. The Constants CO_TIMEOUT_DEFAULT and CO_TIMEOUT_INFINITE can also be used here. |
|
REFRESH_COOKIE |
Reset the cookie object (the object still exists, just has no content) |
|
REFRESH_REQUEST |
Reset the request object |
|
REFRESH_RESPONSE |
Reset the response object |
|
SET_COMPRESSION |
Activate/deactivate the compression. This uses constants CO_COMPRESS_BASED_ON_MIME_TYPE, CO_COMPRESS_IN_ALL_CASES and CO_COMPRESS_NONE. |
The section
Interaction Model gives an example which illustrates the use of some of these methods.For sample programs, see
Sample Program and Parallel Processing Requests.