cURL to Bitcoin-Qt on Mac fails I followed gavinadresen's answer at Bitcoin-Qt command line control on Mac. When I enter the following in terminal, it works:

open Bitcoin-Qt.app --args -server


I've put in the following into my bitcoin.conf file:

rpcuser=yourname
rpcpassword=password


I entered the following in terminal:

curl --user yourname --data-binary '{"id":"t0", "method": "getinfo", "params": [] }' http://127.0.0.1:8332/


The above prompts me for the password and then it shows the following:

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Error&lt;/TITLE&gt;
&lt;META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;&lt;H1&gt;401 Unauthorized.&lt;/H1&gt;&lt;/BODY&gt;
&lt;/HTML&gt;


The above output doesn't look right.  Aren't I supposed to get data from Bitcoin?  How do I get the curl command to work?
Three things to check : 


Is there rpcssl=1 in your bitcoin.conf ? If so, set it to 0 or make HTTPS connections only
Have you set rpcallowip=127.0.0.1 ?
Try connect to http: //yourname:yourpassword@127.0.0.1:8332/ directly


And the fourth thing to check (as I saw your answer) :


Check if you have correctly entered your username and password ;)