confirmed php curl solution works and provided example output. haven't replaced cli curl yet.