Web RPC interface: don't need Curl if you're just doing a GET

This commit is contained in:
David Anderson 2013-09-18 23:51:23 -07:00
parent f06d4af433
commit d40bbcf9e5
1 changed files with 1 additions and 4 deletions

View File

@ -28,10 +28,7 @@ function create_account(
) {
$url = $project_url."/create_account.php?email_addr=".urlencode($email_addr)."&passwd_hash=$passwd_hash&user_name=".urlencode($user_name);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$reply = curl_exec($ch);
curl_close($ch);
$reply = file_get_contents($url);
if (!$reply) return array(null, "HTTP error");
$r = @simplexml_load_string($reply);
if (!$r) {