Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try to implement this in your function</p> <pre><code> function send_string($data) { // pr($data);exit; $equi_input="Your values"; // echo $equi_input; exit; $agent = ""//Agent Setting for Netscape $url = ""; // URL to POST FORM. (Action of Form) //xml format $efx_request=strtoupper($equi_input); //echo $efx_request;exit; $post_fields = "site_id=""&amp;service_name=""&amp;efx_request=$efx_request"; $credentials = ; $headers = array("HTTP/1.1", "Content-Type: application/x-www-form-urlencoded", "Authorization: Basic " . $credentials ); $fh = fopen('/tmp/test.txt', 'w') or die("can't open file"); //File to write the header information of the curl request. $ch = curl_init(); // Initialize a CURL session. curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_STDERR, $fh); curl_setopt($ch, CURLOPT_POST, 1); // use this option to Post a form curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields); // Pass form Fields. curl_setopt($ch, CURLOPT_VERBOSE, '1'); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, '1'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); // grab URL and pass it to the variable. curl_close($ch); // close curl resource, and free system resources. fclose($fh); //echo '&lt;pre&gt;';print_r($array);echo '&lt;/pre&gt;';exit; if (!empty($result)) { return $result; } else { echo "Curl Error" . curl_error($ch); } } </code></pre> <p>check request send 200ok ...</p> <p>And check your secure certificate if you are using....</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload