get specs from html [message #541497] |
Tue, 31 January 2012 13:35 |
mape
Messages: 298 Registered: July 2006 Location: Slovakia
|
Senior Member |
|
|
Hello
I need to get some mobile specs from html page into table.
First of all its needed to get html pieces from main url and put page into clob (see below).
When I do this I get an errors:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1819
ORA-01482: unsupported character set
ORA-06512: at line 10
DECLARE
l_pieces utl_http.html_pieces;
l_url varchar2(32767) default 'http://www.gsmarena.com/sony_ericsson_spiro-3267.php';
l_page clob;
BEtGIN
-- get html pieces from main url and put page into clob:
dbms_lob.createtemporary (l_page, TRUE);
l_pieces := utl_http.request_pieces(l_url);
for i in 1 .. l_pieces.count loop
l_page := l_page || l_pieces(i);
--DBMS_OUTPUT.PUT_LINE(l_pieces(i) );
end loop;
-- free temporary clob:
dbms_lob.freetemporary (l_page);
-- end loop;
end;
Could you please tell me how is a possible to do that?
Thanks all
|
|
|
|
|
|