参考 :http://lelong.iteye.com/blog/538645
http://developer.51cto.com/art/200904/121739.htm
http://developer.51cto.com/art/200904/121739.htm
- <?php
- $domain = 'http://www.112.com/';
- $file = 'abc/back.gif';
- $curlPost = $domain . $file;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://10.2.1.1/api_refresh_files?op=fresh");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);
- $output = curl_exec($ch);
- //$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
- echo $output;
- ?>
编辑回复