创建存储过程
CREATE OR REPLACE PROCEDURE send_http_request(
p_body IN CLOB,
p_response OUT CLOB) AS
req UTL_HTTP.req;
resp UTL_HTTP.resp;
l_url VARCHAR2(200) := 'http://10.10.0.8:5008/api/log';
BEGIN
-- 创建HTTP请求
req := UTL_HTTP.begin_request(l_url, 'POST', 'HTTP/1.1');
-- 设置请求头部
UTL_HTTP.set_header(req, 'Content-Type', 'application/json;chartset=utf-8');
UTL_HTTP.set_header(req, 'Content-Length', LENGTH(p_body));
UTL_HTTP.set_header(req, 'User-Agent', 'Mozilla/4.0');
-- 发送请求体
UTL_