[bug 6402] if $args is empty for a POST request, don't set CURLOPT_POSTFIELDS -- otherwise for some reason cURL doesn't set a Content-Type header, which causes the POST to fail.
Merge branch 'master' of github.com:SignUpDev/PMAPI-examples