PATCH command in tsNetCustom

Sean Cole (Pi) sean at
Tue Sep 14 07:07:12 EDT 2021

Hi all,

I am in need of an example of how to use tsnet to send a PATCH request to a
REST API. I have some JSON (tJson) like '{"myField":"Data"}' and
address (tAddr) like '' and tHeaders
like "Accept-Encoding: gzip" &cr& "Authorization: Bearer" &&
tAccessToken" &cr& "Content-length:" && tLen &cr& "Content-type:
application/json". How do I build my tsnet request?

put tsnetCustomSync(tAddr, "PATCH", tHeaders, tRecvHeaders, tResultCode,
tBytes) into tData

Where does tJson get put?


More information about the use-livecode mailing list