如何在PL/SQL中打印最终的UTL_HTTP
头
下面(1)来自Soapui的UTL_HTTP
头,我们通过UTL_HTTP
方法从PL/SQL代码设置,我想打印此PL/SQL代码(2)
(1)编码:UTF-8标头:{SOAPAction=[setServiceInventoryDetails],content-length=[16549],Authorization:基本VGVzdGVyOIRIc3Q=,host=[adoptu2luat.test.att.com],connection=[keep-alive,close],content-type=[text/xml; charset=UTF-8],user-agent=[Mozilla/4.0]},env:Envelope body</env:Envelope>
1.如何打印DBMS_OUT.put_line
以了解最终的soap UTL Header?
l_http_request := utl_http.begin_request(url => p_url, method => 'POST', http_version => 'HTTP/1.1');
utl_http.set_header(l_http_request, 'User-Agent', 'Mozilla/4.0');
utl_http.set_header(l_http_request, 'Authorization', 'Basic ' || ws_unpw); --cj208w
utl_http.set_header(l_http_request, 'Connection', 'close');
utl_http.set_header(l_http_request, 'Connection', 'keep-alive');
utl_http.set_header(l_http_request, 'Content-Type', 'text/xml;charset=UTF-8');
1条答案
按热度按时间yv5phkfx1#
这是我用的
然后,当它可以通过我的REST API时,我会得到这样的东西-
More info here where I talk about debugging your REST APIs in Oracle Database.