【发布时间】:2017-02-15 07:32:09
【问题描述】:
我尝试了以下方式进行 http 调用:
v_doc_fin clob;
if v_doc_fin is not null then
DBMS_OUTPUT.PUT_LINE (v_doc_fin);
req := utl_http.begin_request(url, 'POST',' HTTP/1.1');
utl_http.set_header(req, 'user-agent', 'mozilla/4.0');
utl_http.set_header(req, 'content-type', 'application/json');
utl_http.set_header(req, 'Content-Length', length(v_doc_fin));
utl_http.write_text(req, v_doc_fin);
res := utl_http.get_response(req);
end if;
我尝试使用 WRITE_RAW 和 write_text 发出 HTTP 请求,但都没有帮助。
UTL_HTTP.write_text (req, v_doc_fin) ;
UTL_HTTP.WRITE_RAW (r => req, data => UTL_RAW.CAST_TO_RAW(v_doc_fin));
我也尝试将请求正文分块分解,但也没有用。
30000 字符限制内的请求运行良好,但当超过该限制时,它会失败。
请就在 Oracle 12c 中发送包含如此大量数据的请求正文的方式提出建议或建议。
【问题讨论】: