widop / google-analytics

Google certificate-based authentication in server-to-server interactions with google analytics for PHP 5.3+
MIT License
27 stars 20 forks source link

[Bug] Fix curl post opts error. #8

Open blazarecki opened 10 years ago

blazarecki commented 10 years ago

Passing an array to CURLOPT_POSTFIELDS will encode the data as multipart/form-data, while passing a URL-encoded string will encode the data as application/x-www-form-urlencoded.

source: http://php.net/manual/en/function.curl-setopt.php

blazarecki commented 10 years ago

Found the issue ping @egeloen @tmartin

tmartin commented 10 years ago

When did we started to make PRs on master ? :) ping @benjaminlazarecki