$token, "others" => 'Cancelled' ); $data_string = json_encode($curl_post_data); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); $contents = curl_exec($ch); header("Content-type: image/png"); print $contents; ?>