Monday, November 27, 2006

 

How to read HTML document from web

Procedure to read HTML document from over the HTTP.


procedure ReadAndShowURL(urllocation varchar2) as
http_req utl_http.req;
http_resp utl_http.resp;
x varchar2(30000);
begin
http_req := utl_http.begin_request(urllocation, 'POST','HTTP/1.0');
http_resp := utl_http.get_response(http_req);
utl_http.read_text(http_resp,x);
htp.p(x);
end;

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?