作者:轻裾随风远 | 来源:互联网 | 2018-04-24 06:52
curlPost.php"'wyjie','img'>'@D:debug.exe');cURL发送post请求$chcurl_init();curl_setopt($ch,CURLOPT_URL,'localhostdemodemocurl01.php');curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_seto
phpcurl
curlPost.php
'wyjie', 'img' => '@D:/debug.exe' ); //cURL发送post请求 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://localhost/demo/demo/curl/01.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $optput = curl_exec($ch); curl_close($ch); echo $optput; ?>
01.php
输出结果
Array ( [name] => wyjie [img] => @./debug.exe ) Array ( )