Can I use curl to call getInfo from a the Bitcoin server? I am wondering if its possible to use curl to getinfo from the bitcoin server thanks.  

&lt;?php
// init the resource
$ch = curl_init();

// set a single option...
$username = 'usernamefromconfig';
$pwd = 'passwordfromconfig';

curl_setopt_array(
    $ch, array( 
    CURLOPT_URL =&gt; "$username:$pwd@127.0.0.1:8336",
    CURLOPT_RETURNTRANSFER =&gt; true
));

$output = curl_exec($ch);
echo $output;

// free
curl_close($ch);
?&gt;
You can use the command-line curl or any of the various JSON-RPC examples listed here.
In particular, you can use curl like this:
$ curl --user &lt;username&gt;:&lt;password&gt; --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;:&quot;curltest&quot;, &quot;method&quot;: &quot;getinfo&quot;, &quot;params&quot;: [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

For PHP, you can use this library and do:
require_once 'jsonRPCClient.php';

$bitcoin = new jsonRPCClient('http://user:password@127.0.0.1:8332/');

echo &quot;&lt;pre&gt;\n&quot;;
print_r($bitcoin-&gt;getinfo()); echo &quot;\n&quot;;
echo &quot;Received: &quot;.$bitcoin-&gt;getreceivedbylabel(&quot;Your Address&quot;).&quot;\n&quot;;
echo &quot;&lt;/pre&gt;&quot;;