Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

UTL_HTTP , 17 of 59


SET_RESPONSE_ERROR_CHECK Procedure

This procedure sets whether or not get_response raises an exception when the Web server returns a status code that indicates an error--a status code in the 4xx or 5xx ranges. For example, when the requested URL is not found in the destination Web server, a 404 (document not found) response status code is returned. If the status code indicates an error--a 4xx or 5xx code--and this procedure is enabled, get_response will raise the HTTP_CLIENT_ERROR or HTTP_SERVER_ERROR exception. If SET_RESPONSE_ERROR_CHECK is set to FALSE, get_response will not raise an exception when the status code indicates an error. Response error check is turned off by default.

Syntax

UTL_HTTP.set_response_error_check (

enable  IN BOOLEAN DEFAULT FALSE);

Parameters

Table 78-19 shows the parameters for the SET_RESPONSE_ERROR_CHECK procedure.

Table 78-19 SET_RESPONSE_ERROR_CHECK Procedure Parameters
Parameter  Description 
enable (IN)
 

TRUE to check for response errors; otherwise FALSE 

Usage Notes

The get_response function can raise other exceptions when SET_RESPONSE_ERROR_CHECK is set to FALSE.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback