<?php
curl_setopt($curl, CURLOPT_VERBOSE, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_USERPWD, 'xxxxxxxxxxxxxx}:{xxxxxxxxxxxxx}');
curl_setopt($curl, CURLOPT_POSTFIELDS, 'username=
xxxxx...@gmail.com&password=secret&grant_type=xxxxxx');
$result = curl_exec($curl);
echo $result;
?>
The only problem, is I get the same error as I do in my other post... At least this time its in HTML.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /oauth/token.
Reason: Error reading from remote server
Apache Server at api.rhapsody.com Port 80