https://github.com/pablo/rshk_http
HTTP CLIENT for PL/SQL
https://github.com/pablo/rshk_http
Last synced: 5 months ago
JSON representation
HTTP CLIENT for PL/SQL
- Host: GitHub
- URL: https://github.com/pablo/rshk_http
- Owner: pablo
- Created: 2015-07-20T14:38:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T14:47:11.000Z (almost 11 years ago)
- Last Synced: 2025-10-21T15:56:04.507Z (9 months ago)
- Language: PLSQL
- Size: 113 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rshk\_http
Package for making simpler HTTP REQUEST with PL/SQL.
## Samples
### GET:
select rshk_http.do_get('http://www.roshka.com') from dual;
Will return a BLOB containing URL's content.
### POST:
declare
p_names TStringArray;
p_values TStringArray;
r CLOB;
begin
p_names(1) := 'access_token';
p_values(1) := 'YAZEERR-AUYERJDSJJSYYEW72772898';
r := rshk_http.do_post('http://www.roshka.com', p_names, p_values);
end;
## Prerequisites
You need to have `utl_http` package installed. Here's how you'd do it on
a UNIX based server:
$ cd $ORACLE_HOME
$ cd rdbms/admin
$ sqlplus sys as sysdba
sql> @utlhttp.sql
sql> @prvthttp.plb
This was tested on Oracle 11gR2 (XE).