I got it figured out
(after I was pointed to the archive)
J
Rqst_body = '{"typeId":"6"}';
dataSize = 14;
http_xproc( HTTP_POINT_ADDL_HEADER
: %paddr(add_headers) );
rc=http_url_post_raw(
'https://XXX.YYYYzYYY.zzz' +
'/app/search':
%addr(Rqst_body): dataSize :
1: %paddr('INCOMING')
:HTTP_TIMEOUT
:HTTP_USERAGENT
: 'application/json' );
From: Gerald Magnuson I need to figure out how to write json directly to the request body…. With the following code: Form = WEBFORM_open; WEBFORM_SetVar(Form: 'typeId': '6' );
WEBFORM_postData( Form : myPointer
: dataSize ); I wind up with: typeID=6 In my request body…. But I need to have: {“typeId”:6} Is there some way to use WEBFORM to pass json?
|
_______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi