UTL_HTTP.begin_request error
Hi All,
I am using database version 11.1.0.7.0 with EBS 12.1.3. I am trying to make a simple request using below code:
declare
vRequest Utl_Http.req;
begin
vRequest := UTL_HTTP.begin_request('https://www.google.lk', method => 'POST');
Exception
When Others Then
dbms_output.put_line('Error: '||SQLCODE||' '||SQLERRM);
end;
But I am getting following error:
Error: -29273 ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1029
ORA-12545: Connect failed because target host or object does not exist
The purpose of this exercise is to send a request to SMS service provider which will send our message as SMS to specified number. Also please anyone can suggest the prerequisites for this task. What are the suggested methods or procedures or APIs are available in Oracle?