://www.mosstech.org/wp-admin/admin-ajax.php"; $header = array('Content-Type: multipart/form-data'); $args = array( 'action' => "update_vote_count", 'item_id' => "18", 'template_id' => "2", 'module_id' => "3", 'module' => "website", 'vote_count' => "7" ); $ch = curl_init( $url ); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_POSTFIELDS, $args ); $server_output = curl_exec($ch); if (curl_errno($ch)) { $error_msg = curl_error($ch); } curl_close ($ch); if (isset($error_msg) and $server_output == "") { echo $error_msg; } echo $server_output;