Index: trunk/core/kernel/globals.php =================================================================== diff -u -r4243 -r4418 --- trunk/core/kernel/globals.php (.../globals.php) (revision 4243) +++ trunk/core/kernel/globals.php (.../globals.php) (revision 4418) @@ -301,7 +301,7 @@ * @param unknown_type $post * @return unknown */ - function curl_post($url, $post, $headers=null) + function curl_post($url, $post, $headers=null, $request_type = 'POST') { if( is_array($post) ) { @@ -328,8 +328,12 @@ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); } - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $post); + // if we have post data, then POST else use GET method instead + if ($request_type == 'POST') { + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $post); + } + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_REFERER, PROTOCOL.SERVER_NAME);