Jump to content

fa11en

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fa11en's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello! Try this: <?php $some_var = trim( stripslashes( $_POST['some_var'] ) ); $some_var2 = trim ( stripslashes( $_POST['some_var2'] ) ); $url = "https://https.host.com/app.php?some_var={$some_var}&some_var2={$some_var2}"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); // to return result into var /* !!!IMPORTANT!!! do not verify ssl sertificate */ curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0); /** to send POST request: curl_setopt ($curl, CURLOPT_POST, 1); curl_setopt ($curl, CURLOPT_POSTFIELDS, "some_var={$some_var}&some_var2={$some_var2}"); // POST data */ $result = curl_exec ($curl); echo htmlspecialchars($result); // Display result ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.