declare i integer; procedure Test_Rest_Call3 is req utl_http.req; res utl_http.resp; url varchar2(32000) := 'http://app-bpm02-t:8080/engine-rest/deployment/create'; name varchar2(32000); buffer varchar2(32000); content clob := '--B61BC46A4B7B2912E05400144FFA2677 Content-Disposition: form-data; name="deployment-name" Test Process Team --B61BC46A4B7B2912E05400144FFA2677 Content-Disposition: form-data; name="enable-duplicate-filtering" false --B61BC46A4B7B2912E05400144FFA2677 Content-Disposition: form-data; name="deployment-source" local --B61BC46A4B7B2912E05400144FFA2677 Content-Disposition: form-data; name="tenant-id" testProcessTeam --B61BC46A4B7B2912E05400144FFA2677 Content-Disposition: form-data; name="upload"; name="testProcessTeam.bpmn"; filename="testProcessTeam.bpmn" Flow_ToPickTeam Flow_ToGateWayTeamOne Flow_TeamOne Flow_NoTeamOne Flow_NoTeamOne Flow_TeamOne Flow_ExitProcessTeamOne Flow_ExitProcessTeamOne Flow_ToPickTeam Flow_ToGateWayTeamOne Flow_ErrorTeamOne Flow_ToTaskHandleError Flow_ToTaskHandleError Flow_ToEndHandleError Flow_ToEndHandleError Flow_ErrorTeamOne #{teamName==''TeamOne''} --B61BC46A4B7B2912E05400144FFA2677--'; begin req := utl_http.begin_request(url, 'POST'); utl_http.set_header(req, 'content-type', 'multipart/form-data; boundary=--B61BC46A4B7B2912E05400144FFA2677'); utl_http.set_authentication( req, 'demo','demo', 'Basic' ); utl_http.set_header(req, 'Content-Length', dbms_lob.getlength(content)); utl_http.write_text(req, content); res := utl_http.get_response(req); -- process the response from the HTTP call begin loop utl_http.read_line(res, buffer); dbms_output.put_line(buffer); end loop; utl_http.end_response(res); exception when utl_http.end_of_body then utl_http.end_response(res); end; dbms_output.put_line('status='||res.status_code); dbms_output.put_line('status='||res.reason_phrase); dbms_output.put_line('status='||res.http_version); end; begin -- Test statements here Test_Rest_Call3; end;