Hi Chris , many thanks for your reply

I will try with HTTAPI ..



Just for curiosity as in the maintime i was triyng with HTTPPOSTCLOB , the
following code could be Ok ?



Dcl-S gData SQLTYPE(CLOB:2000);

Dcl-Ds Request Qualified;

URL Char(128);

Head Char(1024);

Body Char(1024);

End-Ds;



Request.URL = <https://www.google.com/> https://www.google.com/';

Request.Head = '<httpHeader>' +

'<header name="Content-Type"
value="application/json"/>' +

'</httpHeader>';



Request.Body = '/tmp/filename.zip' ;



EXEC SQL SET :gData

= SYSTOOLS.HTTPPOSTCLOB( :Request.URL, :Request.Head, :Request.Body
);

*Inlr = *On;



If ever, could you please post the RPG code, how to run your suggestion :



VALUES SYSTOOLS.HTTPPOSTBLOB(
URL=>' <https://www.google.com/> https://www.google.com/'
, HTTPHEADER=>''
, REQUESTMSG=> GET_BLOB_FROM_FILE( '/tmp/filename.zip')
) ;



i can't figure how to insert these in a rpg source

Thanks in advance

G


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.