查看文件: post3.php
大小: 957 字节
类型: application/octet-stream
<?php // $url = "https://q.yuxingo.com.tw/billtest/posttest.php"; $url = "https://q.yuxingo.com.tw/billtest/posttest.php"; echo $url; //curl_setopt($ch, CURLOPT_POSTFIELDS, "dispnumber=567567567&extension=6"); //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); ?> <?php // application/x-www-form-urlencoded curl_setopt $ch = curl_init(); echo "<br>=============1========="; curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,"dispnumber=567567567&extension=6"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); echo "<br>=========2============="; echo $server_output; echo "<br>==========3============"; ?>
保存
取消
返回文件列表