curl
curl copied to clipboard
Allow JSON payload in request body
Used json_encode($vars) for all requests that specify content-type: application/json in their header params.
The lib failed when posting JSON payload so i added a fix to json_encode($body) all requests that has content-type: application/json in their header.