Hello Community,
I was wondering why won't cURL work on my webstie when i says cURL is supported.

(Website A "server.php"):

<?php
    $ch = curl_init("Website B/callMe.php");

    $nvp = "&message=YOU PASSED ME!!!!";

    curl_setopt($ch, CURLOPT_POSTFIELDS, $nvp);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    echo json_decode(curl_exec($ch));
?>

(Website B "callMe.php"):

<?php
    echo json_encode("You passed me ".$_POST['message']);
?>

And i get no errors just a blank page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.