Oracle 使用utl_http 传送大于32kb数据解决方案
UTL_HTTP Post Data larger than 32KB
Question: How To Post Data larger than 32KB To a Url Using UTL_HTTP?
Is there a way to post Data larger than 32KB using utl_http.write_text?
Answer: Yes, You can post Data larger than 32KB to a Web Service (URL) using UTL_HTTP.
You would have to set header parameter “Transfer-Encoding” as a “chunked”
and then send your data in chunks.
如果BODY 内容超过32KB header需要增加
utl_http.set_header(utl_req
,'Transfer-Encoding'
,'chunked');
示例
CREATE OR REPLACE FUNCTION xx_utl_http(p_url
VARCHAR2
,p_request_body CLOB) RETURN VARCHAR2
AS
UTL_HTTP Post Data larger than 32KB
Question: How To Post Data larger than 32KB To a Url Using UTL_HTTP?
Is there a way to post Data larger than 32KB using utl_http.write_text?
Answer: Yes, You can post Data larger than 32KB to a Web Service (URL) using UTL_HTTP.
You would have to set header parameter “Transfer-Encoding” as a “chunked”
and then send your data in chunks.
如果BODY 内容超过32KB header需要增加
示例
CREATE OR REPLACE FUNCTION xx_utl_http(p_url
