Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_HTTP , 45 of 59
This procedure reads the HTTP response body in binary form and returns the output in the caller-supplied buffer. The end_of_body
exception will be raised if the end of the HTTP response body is reached.
UTL_HTTP.read_raw(r IN OUT NOCOPY resp, data OUT NOCOPY RAW, len IN PLS_INTEGER DEFAULT NULL);
Table 78-45 shows the parameters for the READ_RAW
procedure.
The UTL_HTTP package supports HTTP 1.1 chunked transfer-encoding. When the response body is returned in chunked transfer-encoding format as indicated in the response header, the package automatically decodes the chunks and returns the response body in de-chunked format.
If transfer timeout is set in the request of this response, read_raw
waits for each data packet to be ready to read until timeout occurs. If it occurs, read_raw
stops reading and returns all the data read successfully. If no data is read successfully, the transfer_timeout
exception is raised. The exception can be handled and the read operation can be retried later.
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|