DBA Data[Home] [Help]

APPS.IBY_NETUTILS_PVT dependencies on UTL_HTTP

Line 21: UTL_HTTP.set_proxy(l_proxy,l_noproxy);

17: IF (NOT (TRIM(l_proxy) IS NULL)) THEN
18: iby_utility_pvt.get_property(G_PROFILE_NO_PROXY,l_noproxy);
19: l_noproxy := TRIM(l_noproxy);
20:
21: UTL_HTTP.set_proxy(l_proxy,l_noproxy);
22: END IF;
23: END set_proxy;
24:
25: --

Line 555: l_httpreq UTL_HTTP.Req;

551: l_url VARCHAR2(1000);
552: l_walletpath VARCHAR2(1000);
553: l_line VARCHAR2(4000);
554:
555: l_httpreq UTL_HTTP.Req;
556: l_httpresp UTL_HTTP.Resp;
557: l_sent_req BOOLEAN := false;
558: l_got_resp BOOLEAN := false;
559:

Line 556: l_httpresp UTL_HTTP.Resp;

552: l_walletpath VARCHAR2(1000);
553: l_line VARCHAR2(4000);
554:
555: l_httpreq UTL_HTTP.Req;
556: l_httpresp UTL_HTTP.Resp;
557: l_sent_req BOOLEAN := false;
558: l_got_resp BOOLEAN := false;
559:
560: l_dbg_mod VARCHAR2(100) := G_DEBUG_MODULE || '.post_request';

Line 571: utl_http.set_wallet(l_walletpath,NULL);

567:
568: iby_utility_pvt.get_property
569: (iby_security_pkg.C_SHARED_WALLET_LOC_PROP_NAME,l_walletpath);
570: l_walletpath := iby_netutils_pvt.path_to_url(l_walletpath);
571: utl_http.set_wallet(l_walletpath,NULL);
572: END IF;
573: set_proxy(p_url);
574:
575: iby_debug_pub.add('starting req',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);

Line 576: l_httpreq := utl_http.begin_request(p_url,'POST',null);

572: END IF;
573: set_proxy(p_url);
574:
575: iby_debug_pub.add('starting req',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
576: l_httpreq := utl_http.begin_request(p_url,'POST',null);
577:
578: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
579: utl_http.set_header(l_httpreq,'Accept','text/plain');
580: utl_http.set_header(l_httpreq,'Content-type',

Line 579: utl_http.set_header(l_httpreq,'Accept','text/plain');

575: iby_debug_pub.add('starting req',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
576: l_httpreq := utl_http.begin_request(p_url,'POST',null);
577:
578: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
579: utl_http.set_header(l_httpreq,'Accept','text/plain');
580: utl_http.set_header(l_httpreq,'Content-type',
581: 'application/x-www-form-urlencoded');
582: utl_http.set_header(l_httpreq,'Content-length',
583: TO_CHAR(length(p_postbody)));

Line 580: utl_http.set_header(l_httpreq,'Content-type',

576: l_httpreq := utl_http.begin_request(p_url,'POST',null);
577:
578: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
579: utl_http.set_header(l_httpreq,'Accept','text/plain');
580: utl_http.set_header(l_httpreq,'Content-type',
581: 'application/x-www-form-urlencoded');
582: utl_http.set_header(l_httpreq,'Content-length',
583: TO_CHAR(length(p_postbody)));
584:

Line 582: utl_http.set_header(l_httpreq,'Content-length',

578: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
579: utl_http.set_header(l_httpreq,'Accept','text/plain');
580: utl_http.set_header(l_httpreq,'Content-type',
581: 'application/x-www-form-urlencoded');
582: utl_http.set_header(l_httpreq,'Content-length',
583: TO_CHAR(length(p_postbody)));
584:
585:
586: iby_debug_pub.add('writing body',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);

Line 588: utl_http.write_line(l_httpreq,p_postbody);

584:
585:
586: iby_debug_pub.add('writing body',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
587:
588: utl_http.write_line(l_httpreq,p_postbody);
589: l_sent_req := true;
590: iby_debug_pub.add('reading resp',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
591:
592: l_httpresp := UTL_HTTP.get_response(l_httpreq);

Line 592: l_httpresp := UTL_HTTP.get_response(l_httpreq);

588: utl_http.write_line(l_httpreq,p_postbody);
589: l_sent_req := true;
590: iby_debug_pub.add('reading resp',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
591:
592: l_httpresp := UTL_HTTP.get_response(l_httpreq);
593: l_got_resp :=true;
594: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
595: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
596:

Line 599: utl_http.read_text(l_httpresp,l_line,4000);

595: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
596:
597: BEGIN
598: LOOP
599: utl_http.read_text(l_httpresp,l_line,4000);
600: x_htmldoc := x_htmldoc || l_line;
601: END LOOP;
602: EXCEPTION
603: WHEN utl_http.end_of_body THEN

Line 603: WHEN utl_http.end_of_body THEN

599: utl_http.read_text(l_httpresp,l_line,4000);
600: x_htmldoc := x_htmldoc || l_line;
601: END LOOP;
602: EXCEPTION
603: WHEN utl_http.end_of_body THEN
604: NULL; -- end of input
605: END;
606:
607: UTL_HTTP.end_response(l_httpresp);

Line 607: UTL_HTTP.end_response(l_httpresp);

603: WHEN utl_http.end_of_body THEN
604: NULL; -- end of input
605: END;
606:
607: UTL_HTTP.end_response(l_httpresp);
608:
609: iby_debug_pub.add('Exit',iby_debug_pub.G_LEVEL_PROCEDURE,l_dbg_mod);
610: EXCEPTION
611: WHEN OTHERS THEN

Line 612: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,

608:
609: iby_debug_pub.add('Exit',iby_debug_pub.G_LEVEL_PROCEDURE,l_dbg_mod);
610: EXCEPTION
611: WHEN OTHERS THEN
612: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,
613: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
614: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
615: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
616:

Line 614: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),

610: EXCEPTION
611: WHEN OTHERS THEN
612: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,
613: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
614: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
615: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
616:
617: IF (l_got_resp) THEN
618: UTL_HTTP.end_response(l_httpresp);

Line 618: UTL_HTTP.end_response(l_httpresp);

614: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
615: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
616:
617: IF (l_got_resp) THEN
618: UTL_HTTP.end_response(l_httpresp);
619: iby_debug_pub.add('close resp',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
620: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
621: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
622: ELSIF (l_sent_req) THEN

Line 623: UTL_HTTP.end_request(l_httpreq);

619: iby_debug_pub.add('close resp',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
620: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
621: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
622: ELSIF (l_sent_req) THEN
623: UTL_HTTP.end_request(l_httpreq);
624: iby_debug_pub.add('close req',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
625: END IF;
626: RAISE;
627: END;