What is the UTL_HTTP Oracle supplied package?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the UTL_HTTP Oracle supplied package?

Rating:

The UTL_HTTP Oracle supplied package allows a user to make HTTP requests directly from the database. The UTL_HTTP package makes HTTP callouts from SQL and PL/SQL. The UTL_HTTP package can be used to access data on the Internet or to call Oracle Web Server Cartridges. This package contains two entry point functions: REQUEST and REQUEST_PIECES. Both functions take a string URL (uniform resource locator) as a parameter, contact the site, and return the HTML data obtained from the site. The REQUEST function returns up to the first 2000 bytes of data retrieved from the given URL. The REQUEST_PIECES function returns a PL/SQL table of 2000-byte pieces of the data retrieved from the given URL.

If the HTTP call fails (such as when the URL is not properly specified in the HTTP syntax), the REQUEST_FAILED exception is raised. If an initialization of the HTTP-callout subsystem fails (for a reason such as a lack of available memory), the INIT_FAILED exception is raised. If there is no response from the specified URL, a formatted HTML error message may be returned. If a client user is behind a firewall, he needs to specify proxy as a parameter in addition to the URL.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.