Now JSON-encoding request parameters for Rest calls prior to building cURL params to allow a simple strlen measure for the headers.