From d40bbcf9e50a6af7060fb8f09790e3ff4e2a8954 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 18 Sep 2013 23:51:23 -0700 Subject: [PATCH] Web RPC interface: don't need Curl if you're just doing a GET --- html/inc/web_rpc_api.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/html/inc/web_rpc_api.inc b/html/inc/web_rpc_api.inc index a61208288d..a39f00fb04 100644 --- a/html/inc/web_rpc_api.inc +++ b/html/inc/web_rpc_api.inc @@ -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) {