What am I doing wrong?

10 views
Skip to first unread message

Aaron

unread,
May 25, 2016, 10:19:13 PM5/25/16
to Rhapsody API
curl -v -X POST -u "{xxxxxxxxxxxxxxxx}:{xxxxxxxxxxxxxxxxx}" -d "username=xxx....@gmail.com&password=secret&grant_type=xxxxxxxxxxxxxxxx" "https://api.rhapsody.com/oauth/token"

Im not exactly the words best programer but not an idiot either.  I must say at a minimum its confusing when you have password=  and =password in your example. Do I replace the secret with the password or the password with the password?

This is what I get...

< HTTP/1.1 502 Bad Gateway
< Content-Length: 468
< nnCoection: close
< Content-Type: text/html; charset=iso-8859-1
< Date: Thu, 26 May 2016 02:14:45 GMT
< Connection: close
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/oauth/token">POST&nbsp;/oauth/token</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache Server at api.rhapsody.com Port 80</address>
</body></html>
* Closing connection #0

Reply all
Reply to author
Forward
0 new messages