[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPAPI REST PUT function
Hi Frank,
when you are on V7R1 you are able to work with HTTPPUTCLOB
Like this request in JSON format:
Select SYSTOOLS.HTTPPUTCLOB
('https://mydomain.com',
'<httpHeader>
<header name="Content-Type" value="application/json"/>
<header name="Authorization" value="Basic
cmFsadfasdfasdfasdfpbmVycm9sddas1OQ=="/>
</httpHeader>',
'{"id": "4","name": "Name","city": "Berlin"}'
) from SYSIBM.SYSDUMMY1;
Look at:
https://www.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.sqlref/src/tpc/db2z_udf_httpput.dita
Best regards
Rainer
Am 11.04.2016 um 16:17 schrieb Frank Lorentzen, ECP AS:
Hi.
I need to perform a HTTP PUT operation to communicate with a
webservice.
Any way to do this with HTTPAPI?
The only reference to PUT i have found is in the routine
http_persist_req(): Perform (any) Persistent HTTP Request.
Brgds
Frank Lorentzen,
ECP Support
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------