http_client
returns a varchar containing the body of the request uri
varchar http_client
(in url varchar,
[in uid varchar],
[in pwd varchar],
[in http_method varchar],
[in http_headers varchar],
[in body varchar],
[in cert_file varchar],
[in cert_pwd varchar]);
Parameters
url –
target URL (http: or https: are supported)
uid –
user name
pwd –
user password
http_method –
'GET', 'POST', 'HEAD' or 'PUT'
http_headers –
a string containing a HTTP headers supplied by application
body –
content to be sent
cert_file –
cpath to the certificate file where is stored
x509 certificate, private key and CA certificates
cert_pwd –
password for oppening the certificate file.
Description
This function is used to perform HTTP operations to retrieve
generic content and/or to perform generic operations over HTTP/HTTPS protocols.
It also supports HTTP authentication based on username/password credentials.
If the URL is https: an no x509 certificate given then it will opearate as https client w/o client certificate.