I'm trying to make cURL post to this page the data txt_code=1605120090100999
. Can anyone show me the PHP code that posts that value to that page and gives me the result as output?
I tried this:
$url = 'http://195.246.54.62/support/mis_support.aspx';
$txt_code = '1605120090100999';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_COOKIEFILE,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "txt_code=$txt_code");
// Execute...
$output = curl_exec($ch);
echo $output;
but it gave me the page without post