SET serveroutput ON SIZE 40000
DECLARE
req utl_http.req;
resp utl_http.resp;
value VARCHAR2(1024);
BEGIN utl_http.set_proxy('proxy.my-company.com', 'corp.my-company.com'); req := utl_http.begin_request('http://www-hr.corp.my-company.com');
utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
resp := utl_http.get_response(req);
LOOP
utl_http.read_line(resp, value, TRUE);
dbms_output.put_line(value);
END LOOP;
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;
DECLARE
req utl_http.req;
resp utl_http.resp;
value VARCHAR2(1024);
BEGIN utl_http.set_proxy('proxy.my-company.com', 'corp.my-company.com'); req := utl_http.begin_request('http://www-hr.corp.my-company.com');
utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
resp := utl_http.get_response(req);
LOOP
utl_http.read_line(resp, value, TRUE);
dbms_output.put_line(value);
END LOOP;
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;
解决方案 »
- 在WIN 7 下安装 ORACLE 10G创建数据库时报ORA- 12546: TNS:permission denied
- 请教一条SQL的写法 在线等!!!!!!!!
- redhat 9.0 上 安装 oracle 8.1.7 请求 急救!!!!
- 请问怎么把txt文件的数据导入到oracle的某张表中
- sql 关联查询
- 游标中sql传递变量问题
- 如何利用时间函数得到上个月的第一天和上个月的最后一天??
- 关于序列的问题。。。。
- 请问过程、触发器等存放在哪个空间??
- 如何实现条件分组求和,类似SQL的case airline when '880' then pax when 'OTH' then 0 end功能
- 可以用SQL语句查询表空间的使用情况吗?
- 请教高手,挺难的一个题目!
--------------------------------------------------------------------------------
<html><head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="REFRESH" content="1;URL=http://www.rcse.net">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>This
page
has
been
moved
to
www</title>
</head><body><p>This
page
has
been
moved
to
<a href="http://www.rcse.net">www.rcse.net</a></p></body></html>