am struggling with this for weeks now..
what is the correct way to send HTML-code with cURL ?? 
I tried base46_encode() and also json_encode() .. but on the reciever-side I always get a unuseable string.. how would i encode a html-code for sending? 
$ch = curl_init($url);
$payload = json_encode( $data );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));                
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );                
$result = curl_exec($ch);
curl_close($ch);
 
     
    