|
I am trying to optimize this
I have a http api that I need to hit repetitively :
C eval wwComm = http_persist_open(%TRIM(XYZSERVER) +
C '/rest/foo/update?id='
C + %TRIM(XRFRECID8))
C IF wwComm = *NULL
C'open failed' DSPLY
C ELSE
C eval rc=http_persist_req('PUT':
c wwComm : %TRIM(XYZSERVER) +
C '/rest/foo/update?id='
C + %TRIM(XRFRECID8)
c : 0 : *NULL : updrecp : 48 : 0 :
c %paddr('FILL_BUFFY') :
C HTTP_TIMEOUT: HTTP_USERAGENT :
C 'application/json')
c callp http_persist_close( wwComm )
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.