Change CURLOPT_POST to true for PUT

Since we specify what data to PUT via the CURLOPT_POSTFIELDS option, CURLOPT_POST needs to be true otherwise no data is sent.