查看文件: post2.php
大小: 529 字节
类型: application/octet-stream
<?php // $url = "https://q.yuxingo.com.tw/billtest/posttest.php"; $url = "https://q.yuxingo.com.tw:443/billtest/posttest.php"; echo $url; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '$url'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array("abc"=>"123", "def"=>"456"))); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0'); $output = curl_exec($ch); curl_close($ch); echo $output; ?>
保存
取消
返回文件列表