Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_HTTP , 26 of 59
This procedure sets an HTTP request header. The request header is sent to the Web server as soon as it is set.
UTL_HTTP.set_header (r IN OUT NOCOPY req, name IN VARCHAR2, value IN VARCHAR2);
Table 78-26 shows the parameters for the SET_HEADER
procedure.
Parameter | Description |
---|---|
r (IN/OUT) |
The HTTP request |
name (IN) |
The name of the HTTP request header |
value (IN) |
The value of the HTTP request header |
Multiple HTTP headers with the same name are allowed in the HTTP protocol standard. Therefore, setting a header does not replace a prior header with the same name.
If the request is made using HTTP 1.1, UTL_HTTP
sets the Host header automatically for you.
When you set the Content-Type header with this procedure, UTL_HTTP
looks for the character set information in the header value. If the character set information is present, it is set as the character set of the request body. It can be overridden later by using the set_body_charset
procedure.
When you set the Transfer-Encoding header with the value chunked,
UTL_HTTP
automatically encodes the request body written by the write_text, write_line
and write_raw procedures.
Note that some HTTP-1.1-based Web servers or CGI programs do not support or accept the request body encoding in the HTTP 1.1 chunked transfer-encoding format.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|